NodeHttpServerRequest
Accessors for the Node.js objects behind an Effect HTTP server request.
toIncomingMessage returns the underlying Node http.IncomingMessage. toServerResponse returns the underlying Node http.ServerResponse, evaluating the stored response thunk when the response was created lazily.
Accessors
toIncomingMessage
Added in v4.0.0
Source
Signature
declare function toIncomingMessage(self: HttpServerRequest): IncomingMessage;toServerResponse
Added in v4.0.0
Source
Returns the underlying Node ServerResponse for a platform Node HttpServerRequest, evaluating the stored response thunk when the response was created lazily.
Signature
declare function toServerResponse(self: HttpServerRequest): ServerResponse;
Returns the underlying Node
IncomingMessagefor a platform NodeHttpServerRequest.