Optionalbody?: null | Uint8Array<ArrayBufferLike>OptionalcontentType?: null | stringOptionaldeadline?: null | numbermilliseconds, >= 0
Optionalheaders?: Record<string, string>one of HttpMethod
absolute http:// or https:// URL
ReadonlybodyReadonlycontentReadonlydeadlineBound for the whole exchange in milliseconds, or null.
ReadonlyheadersLowercased, single-valued request headers.
ReadonlymethodReadonlyurlStaticfrom
One HTTP exchange, as handed to an
HttpTransport.urlis absolute and already resolved. The transport never joins anything.bodyandcontentTypearenullon a bodyless request.headersis never null. An empty map is the absence of headers, and header names are lowercase. Request headers are single-valued.deadlinebounds the whole exchange in milliseconds, body included, not time-to-first-byte. A transport must abandon the exchange and fail withtimeout-errorwhen it elapses. It isnullwhen the caller imposes no bound of its own.Instances are immutable. Derive a changed copy with
new HttpRequest({ ...request, deadline: 1000 }).