Class HttpClientConnectionManager

Creates, manages, and vends connections to a given host/port endpoint

Hierarchy

  • NativeResource
    • HttpClientConnectionManager

Constructors

  • Parameters

    • bootstrap: undefined | ClientBootstrap

      Client bootstrap to use when initiating socket connections. Leave undefined to use the default system-wide bootstrap (recommended).

    • host: string

      Host to connect to

    • port: number

      Port to connect to on host

    • max_connections: number

      Maximum number of connections to pool

    • initial_window_size: number

      Optional initial window size

    • socket_options: SocketOptions

      Socket options to use when initiating socket connections

    • Optional tls_opts: TlsConnectionOptions

      Optional TLS connection options

    • Optional proxy_options: HttpProxyOptions

      Optional proxy options

    Returns HttpClientConnectionManager

Properties

bootstrap: undefined | ClientBootstrap

Client bootstrap to use when initiating socket connections. Leave undefined to use the default system-wide bootstrap (recommended).

host: string

Host to connect to

initial_window_size: number

Optional initial window size

max_connections: number

Maximum number of connections to pool

port: number

Port to connect to on host

proxy_options?: HttpProxyOptions

Optional proxy options

socket_options: SocketOptions

Socket options to use when initiating socket connections

Optional TLS connection options

Methods

  • Closes all connections and rejects all pending requests

    Returns void

  • Returns an unused connection to the pool

    Parameters

    Returns void

Generated using TypeDoc