Share via


Request interface

Represents a Node.js HTTP Request, including the minimal set of use properties. Compatible with Restify, Express, and Node.js core http.

Properties

body

The body of the HTTP request, containing parsed data.

headers

The headers of the HTTP request, represented as key-value pairs.

method

The HTTP method of the request (e.g., GET, POST, PUT, DELETE).

user

The user information extracted from a JWT payload, if available.

Property Details

body

The body of the HTTP request, containing parsed data.

body?: Body

Property Value

Body

headers

The headers of the HTTP request, represented as key-value pairs.

headers: Headers

Property Value

Headers

method

The HTTP method of the request (e.g., GET, POST, PUT, DELETE).

method?: string

Property Value

string

user

The user information extracted from a JWT payload, if available.

user?: JwtPayload

Property Value

JwtPayload