[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/REQUEST [Back]  [Original]

REQUEST Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

REQUEST

constant
stable

Injection token representing the current HTTP request object.

`Request` on MDNAccessing Request and Response via DI

On this page

    arrow_upward_alt Back to the top

    API

        
          const REQUEST: InjectionToken<Request | null>;
        
        

    Description

    Injection token representing the current HTTP request object.

    Use this token to access the current request when handling server-side rendering (SSR).

    Usage Notes

    This token may be null in the following scenarios:

    • During the build processes.
    • When the application is rendered in the browser (client-side rendering).
    • When performing static site generation (SSG).
    • During route extraction in development (at the time of the request).
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page