Skip to content

NodeHandlerOptions

Defined in: src/adapters/node.ts:208

Options for toNodeHandler.

Property Type Description Inherited from Defined in
lazyBody? boolean Stream the request body to the handler only when it reads it, instead of buffering it first. Lets later middleware see an untouched stream when the handler ignores the body. Default false. ToWebRequestOptions.lazyBody src/adapters/node.ts:39
onError? (error, req, res) => void Called when the handler throws. Default: a plain 500 (when headers have not been sent yet). - src/adapters/node.ts:213
origin? string Override the origin (https://example.com); default: protocol + Host header. ToWebRequestOptions.origin src/adapters/node.ts:41