Skip to content

HttpHandler

HttpHandler = (request, context) => HttpOutgoingResponse | Promise<HttpOutgoingResponse>

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

Answers one request.

Called once per request, in arrival order per connection. Throwing, or rejecting, is answered with 500 when the response has not started, and with the connection’s teardown otherwise.

HttpIncomingRequest

HttpHandlerContext

HttpOutgoingResponse | Promise<HttpOutgoingResponse>