Skip to main content

ServerlessStreamResponse

@h4ad/serverless-adapter > ServerlessStreamResponse

(class) ServerlessStreamResponse

The class that represents a response instance used to send to the framework and wait until the framework finishes processing the request. This response is specially built to deal with transfer-encoding: chunked

Signature:

export declare class ServerlessStreamResponse extends ServerResponse 

Extends: ServerResponse

(constructor)

Constructs a new instance of the ServerlessStreamResponse class

Signature:

constructor(\{ method, onReceiveHeaders, log, }: ServerlessStreamResponseProps);

Parameters

ParameterTypeDescription
{ method, onReceiveHeaders, log, }ServerlessStreamResponseProps