createWebRequestFromNodeRequest
function
Converts a Node.js IncomingMessage or Http2ServerRequest into a
Web Standard Request object.
createWebRequestFromNodeRequest
RequestConverts 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
any- The Node.js request object (
IncomingMessageorHttp2ServerRequest) to convert.
@returns
RequestDescription
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.
Jump to details