Skip to main content
The part of an Express request toExpress reads.

Properties

body?

A parsed body from express.json(), or a raw string.

headers


method


on?

Present when no parser has consumed the stream, which is then read as-is.

Call Signature

Each chunk of the body, in order.
Parameters
event
"data"
listener
(chunk) => void
Returns
unknown

Call Signature

The body is complete.
Parameters
event
"end"
listener
() => void
Returns
unknown

Call Signature

The stream failed; the adapter rejects with the error.
Parameters
event
"error"
listener
(error) => void
Returns
unknown

originalUrl?

Preferred over url, so a router-mounted path keeps its prefix.

protocol?

Used as the scheme of the url handed to the handler. Defaults to https.

url?