Skip to content

HttpHandlerContext

HttpHandlerContext = object

Defined in: packages/net-http/src/message/http-message.ts:138

What a handler knows about the exchange beyond the request itself.

readonly local: TransportEndpoint | null

Defined in: packages/net-http/src/message/http-message.ts:148


readonly remote: TransportEndpoint | null

Defined in: packages/net-http/src/message/http-message.ts:149


readonly secure: boolean

Defined in: packages/net-http/src/message/http-message.ts:146

Whether the request arrived over TLS.


readonly signal: AbortSignal

Defined in: packages/net-http/src/message/http-message.ts:143

Aborted when the response can no longer be delivered: the connection closed, or the server shut down forcibly.

sendInformational(status, headers?): Promise<void>

Defined in: packages/net-http/src/message/http-message.ts:159

Send an interim response ahead of the final one: 103 Early Hints, or a 100 Continue the server did not already send. Ignored once the final response started, and for an HTTP/1.0 client, which cannot receive one.

number

A 1xx status other than 101.

HttpHeaders

Promise<void>

When status is not such a status.