GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — createWebRequestFromNodeRequest • Angular

API

function createWebRequestFromNodeRequest(
  nodeRequest: IncomingMessage | Http2ServerRequest,
  trustProxyHeaders?: boolean | readonly string[] | undefined,
): Request;
@paramnodeRequestIncomingMessage | Http2ServerRequest
  • The Node.js request object (IncomingMessage or Http2ServerRequest) to convert.
@paramtrustProxyHeadersboolean | readonly string[] | undefined
  • A boolean or an array of proxy headers to trust when constructing the request URL.
@returnsRequest

A Web Standard Request object.

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.

Usage Notes

When trustProxyHeaders is enabled, headers such as Forwarded, X-Forwarded-Host, and X-Forwarded-Prefix should ideally be strictly validated at a higher infrastructure level (e.g., at the reverse proxy or API gateway) before reaching the application.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.