Class: StreamedResponse

StreamedResponse(responseObject, parent) → {StreamedResponse}

Represents a streamed response (which can be written in chunks, rather than at once)

Constructor

new StreamedResponse(responseObject, parent) → {StreamedResponse}

Parameters:
Name Type Description
responseObject ServerResponse The Node server response object
parent RequestResponse The Origami response object that instantiated this StreamedResponse
Source:
Returns:
Type
StreamedResponse

Members

commitHeaders

Commit the current headers, sending them with the response. Headers can only be committed once.
Source:

end

End the response.
Source:

writeChunk

Write a chunk to the response body.
Source: