Converts a Node.js IncomingMessage
or Http2ServerRequest
into a
Web Standard Request
object.
API
Description
function createWebRequestFromNodeRequest( nodeRequest: IncomingMessage | Http2ServerRequest): Request;
createWebRequestFromNodeRequest
Request
Converts a Node.js IncomingMessage
or Http2ServerRequest
into a
Web Standard Request
object.
This function adapts the Node.js request objects to a format that can be used by web platform APIs.
@paramnodeRequest
IncomingMessage | Http2ServerRequest
- The Node.js request object (
IncomingMessage
orHttp2ServerRequest
) to convert.
@returns
Request
Jump to details