The Wayback Machine - https://web.archive.org/web/20251110075226/https://angular.dev/api/ssr/node/createWebRequestFromNodeRequest
    • Overview
@angular/ssr/node

createWebRequestFromNodeRequest

function

Converts a Node.js IncomingMessage or Http2ServerRequest into a Web Standard Request object.

API

function createWebRequestFromNodeRequest(nodeRequest: any): 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.

@paramnodeRequestany
  • The Node.js request object (IncomingMessage or Http2ServerRequest) to convert.
@returnsRequest

Description

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
HTTPS · web.archive.org
← Home