OptionalconnectionThe maximum time in milliseconds that the connection phase of a request may take before the connection attempt is abandoned. Defaults to 0, which disables the timeout.
OptionalhttpYou can pass http.Agent or its constructor options.
OptionalhttpsYou can pass https.Agent or its constructor options.
OptionalloggerOptional logger.
OptionalrequestThe maximum number of milliseconds request & response should take. Defaults to 0, which disables the timeout.
If exceeded, a warning will be emitted unless throwOnRequestTimeout=true, in which case a TimeoutError will be thrown.
OptionalsocketDelay before the NodeHttpHandler checks for socket exhaustion, and emits a warning if the active sockets and enqueued request count is greater than 2x the maxSockets count.
Defaults to connectionTimeout + requestTimeout or 3000ms if those are not set.
OptionalsocketThe maximum time in milliseconds that a socket may remain idle before it is closed. Defaults to 0, which means no maximum.
This does not affect the server, which may still close the connection due to an idle socket.
OptionalthrowBecause requestTimeout was for a long time incorrectly being set as a socket idle timeout, users must also opt-in for request timeout thrown errors. Without this setting, a breach of the request timeout will be logged as a warning.
Represents the http options that can be passed to a node http client.