Skip to content

HttpRequestOptions

HttpRequestOptions = object

Defined in: packages/net-http/src/h1/http1-client-connection.ts:40

Per-request options for Http1ClientConnection.request.

readonly optional onInformational?: (status, headers) => void

Defined in: packages/net-http/src/h1/http1-client-connection.ts:49

Called for each interim (1xx) response ahead of the final one.

number

HttpHeaders

void


readonly optional signal?: AbortSignal

Defined in: packages/net-http/src/h1/http1-client-connection.ts:46

Abandons the exchange. Over HTTP/1.x that can only be done by closing the connection, so aborting destroys it; over HTTP/2 it resets the request’s stream only.