iya-sts
    Preparing search index...
    Index
    • The shared agent for one scheme, built from the settings and rebuilt when they change.

      Parameters

      • secure: boolean

        true for https

      Returns Agent

      the agent

    • The connection caps, from the settings.

      Returns { perHost: number; total: number }

      { perHost, total }

    • The deadline a call gets: the setting, or the caller's own timeout where that is longer.

      Parameters

      • OptionaltimeoutMs: number

        the caller's own timeout

      Returns number

      milliseconds

    • Arms 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.

      Parameters

      • request: any

        the ClientRequest

      • Optionaloptions: GuardOptions

        see GuardOptions

      Returns void

    • The deadline and connect timeout for a raw socket (the ICAP scanner), which has no agent. Cleared when the socket closes.

      Parameters

      • socket: any

        the net or tls socket, just made

      • Optionaloptions: GuardOptions

        deadlineMs, secure, where, onTimeout

      Returns void

    • Measures what a request just made would send: its request-target and its header fields, against the two bounds (#2247).

      Parameters

      • request: any

        the ClientRequest

      Returns { code: string; why: string }

      { code, why } when one is over, or null

    • Gives 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.

      Parameters

      • requestOptions: any

        the options about to be given to request()

      • secure: boolean

        true for https

      Returns any

      the same options