NodeHttpServerRequest unstable
Accessors for the Node.js objects behind an Effect HTTP server request.
toIncomingMessage returns the underlying Node http.IncomingMessage, or
http2.Http2ServerRequest for an HTTP/2 request. toServerResponse returns
the underlying Node http.ServerResponse or http2.Http2ServerResponse,
evaluating the stored response thunk when the response was created lazily.
Accessors
toIncomingMessage
unstable Since v4.0.0 Source
Returns the underlying Node IncomingMessage for a platform Node
HttpServerRequest, or the Http2ServerRequest when it was received over
HTTP/2.
Signature
declare function toIncomingMessage(self: HttpServerRequest): IncomingMessage | Http2ServerRequesttoServerResponse
unstable Since v4.0.0 Source
Returns the underlying Node ServerResponse for a platform Node
HttpServerRequest, or the Http2ServerResponse when it was received over
HTTP/2, evaluating the stored response thunk when the response was created
lazily.
Signature
declare function toServerResponse(self: HttpServerRequest): ServerResponse<IncomingMessage> | Http2ServerResponse<Http2ServerRequest>