NodeHttpServerRequest.ts
NodeHttpServerRequest.ts overview
Section titled “NodeHttpServerRequest.ts overview”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.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”accessors
Section titled “accessors”toIncomingMessage
Section titled “toIncomingMessage”Returns the underlying Node IncomingMessage for a platform Node
HttpServerRequest.
Signature
declare const toIncomingMessage: (self: HttpServerRequest) => Http.IncomingMessageSince v4.0.0
toServerResponse
Section titled “toServerResponse”Returns the underlying Node ServerResponse for a platform Node
HttpServerRequest, evaluating the stored response thunk when the response
was created lazily.
Signature
declare const toServerResponse: (self: HttpServerRequest) => Http.ServerResponseSince v4.0.0