Staticagenttrue for https
the agent
StaticcapsThe connection caps, from the settings.
{ perHost, total }
StaticconnectThe connect timeout, from the setting.
milliseconds
StaticdeadlineThe deadline a call gets: the setting, or the caller's own timeout where that is longer.
OptionaltimeoutMs: number
the caller's own timeout
milliseconds
StaticguardArms the deadline and the connect timeout on a request just made, and
notes whether it had to wait for a socket. Both timers are cleared when
the request closes. A request over a size bound (sizeProblem()) is
destroyed instead, with an error its caller's error handler reports.
the ClientRequest
Optionaloptions: GuardOptions
see GuardOptions
StaticguardThe deadline and connect timeout for a raw socket (the ICAP scanner), which has no agent. Cleared when the socket closes.
the net or tls socket, just made
Optionaloptions: GuardOptions
deadlineMs, secure, where, onTimeout
StaticsizeMeasures what a request just made would send: its request-target and its header fields, against the two bounds (#2247).
the ClientRequest
{ code, why } when one is over, or null
StaticuseGives a request's options the shared agent, with the pool key that
keeps a socket to the checks it was made under. Called after lookup
and checkServerIdentity are set. A request that brings its own agent
(or agent: false), a Unix socket, or its own createConnection is
left as it is.
the options about to be given to request()
true for https
the same options
The shared agent for one scheme, built from the settings and rebuilt when they change.