OptionalallowOptionalautoEnables a family autodetection algorithm that loosely implements section 5 of RFC 8305.
OptionalautoThe amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the autoSelectFamily option.
OptionalbodyThe 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).
OptionalconnectTODO
OptionalconnectionsThe max number of clients to create. null if no limit. Default null.
OptionalconnectTODO
OptionalheadersThe amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: 300e3 milliseconds (300s).
OptionalidleOptionalinterceptorsTODO
OptionalkeepOptionalkeepthe maximum allowed idleTimeout, in milliseconds, when overridden by keep-alive hints from the server. Default: 600e3 milliseconds (10min).
Optionalkeepthe 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).
OptionalkeepA 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).
OptionallocalTODO
OptionalmaxTODO
OptionalmaxOptionalmaxThe maximum length of request headers in bytes. Default: Node.js' --max-http-header-size or 16384 (16KiB).
OptionalmaxOptionalmaxTODO
OptionalmaxTODO
OptionalmaxMax response body size in bytes, -1 is disabled
OptionalpipeliningThe amount of concurrent requests to be sent over the single TCP/TLS connection according to RFC7230. Default: 1.
OptionalrequestOptionalsocketTODO
OptionalsocketOptionalstrictIf true, an error is thrown when the request content-length header doesn't match the length of the request body. Default: true.
OptionaltlsOptionalfactoryDefault: (origin, opts) => new Client(origin, opts).
Description
Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
Default