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 connectionsThe max number of clients to create. null if no limit. Default null.
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 idleunsupported idleTimeout, use keepAliveTimeout instead
Optional interceptorsTODO
Optional Agent?: readonly DispatchInterceptor[]Optional Pool?: readonly DispatchInterceptor[]Optional keepunsupported keepAlive, use pipelining=0 instead
Optional 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 maxDictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
100
Optional maxThe maximum length of request headers in bytes. Default: Node.js' --max-http-header-size or 16384 (16KiB).
Optional maxunsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead
Optional maxInteger. Default: 0
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 requestunsupported requestTimeout, use headersTimeout & bodyTimeout instead
Optional socketTODO
Optional socketunsupported socketTimeout, use headersTimeout & bodyTimeout instead
Optional strictIf true, an error is thrown when the request content-length header doesn't match the length of the request body. Default: true.
Optional tlsuse the connect option instead
Optional factoryDefault: (origin, opts) => new Pool(origin, opts).
Description
Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
Default