Skip to main content

ServerlessStreamResponseProps

@h4ad/serverless-adapter > ServerlessStreamResponseProps

(interface) ServerlessStreamResponseProps

The properties to create a ServerlessStreamResponse .

Signature:

export interface ServerlessStreamResponseProps 

(property) log

Instance of the logger

Signature:

log: ILogger;

(property) method

The HTTP Method from request

Signature:

method?: string;

(property) onReceiveHeaders

The callback to receive the headers when they are written to the stream You need to return a writable stream be able to continue writing the response

Signature:

onReceiveHeaders: (statusCode: number, headers: BothValueHeaders) => Writable;