Optional
allowOptional
autoEnables a family autodetection algorithm that loosely implements section 5 of RFC 8305.
Optional
autoThe amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the autoSelectFamily
option.
Optional
bodyThe timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use 0
to disable it entirely. Default: 300e3
milliseconds (300s).
Optional
connectTODO
Optional
connectTODO
Optional
headersThe amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: 300e3
milliseconds (300s).
Optional
idleOptional
interceptorsTODO
Optional
keepOptional
keepthe maximum allowed idleTimeout
, in milliseconds, when overridden by keep-alive hints from the server. Default: 600e3
milliseconds (10min).
Optional
keepthe timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by keep-alive hints from the server. Default: 4e3
milliseconds (4s).
Optional
keepA number of milliseconds subtracted from server keep-alive hints when overriding idleTimeout
to account for timing inaccuracies caused by e.g. transport latency. Default: 1e3
milliseconds (1s).
Optional
localTODO
Optional
maxTODO
Optional
maxOptional
maxThe maximum length of request headers in bytes. Default: Node.js' --max-http-header-size
or 16384
(16KiB).
Optional
maxOptional
maxTODO
Optional
maxTODO
Optional
maxMax response body size in bytes, -1 is disabled
Optional
pipeliningThe amount of concurrent requests to be sent over the single TCP/TLS connection according to RFC7230. Default: 1
.
Optional
requestOptional
socketTODO
Optional
socketOptional
strictIf true
, an error is thrown when the request content-length header doesn't match the length of the request body. Default: true
.
Optional
tls
Description
Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
Default