HttpOutgoingRequest
HttpOutgoingRequest =
HttpOutgoingContent_&object
Defined in: packages/net-http/src/message/http-message.ts:118
A request, as a client sends it.
Type Declaration
Section titled “Type Declaration”method
Section titled “method”
readonlymethod:string
protocol?
Section titled “protocol?”
readonlyoptionalprotocol?:string
The protocol to switch to, with method CONNECT: an extended CONNECT
(RFC 8441, RFC 9220) on HTTP/2 and HTTP/3, accepted with a 2xx. Over
HTTP/1.1 the request is sent as a GET with Upgrade: <protocol> instead,
accepted with a 101. Either way the switch hands over tunnel; check the
response’s version for which acceptance applies.
readonlyurl:URL
Scheme, authority, path and query. For CONNECT only the authority is
sent. Host is set from it unless headers holds one.