Class HttpClientConnectionManager

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

Hierarchy

  • HttpClientConnectionManager

Constructors

  • Constructor for the HttpClientConnectionManager class. Signature stays in sync with native implementation for compatibility purposes (leads to some useless params)

    Parameters

    • bootstrap: undefined | ClientBootstrap

      (native only) leave undefined

    • host: string

      endpoint to pool connections for

    • port: number

      port to connect to

    • max_connections: number

      maximum allowed connection count

    • initial_window_size: number

      (native only) leave as zero

    • Optional socket_options: SocketOptions

      (native only) leave null

    • Optional tls_opts: TlsConnectionOptions

      if not null TLS will be used, otherwise plain http will be used

    • Optional proxy_options: HttpProxyOptions

      configuration for establishing connections through a proxy

    Returns HttpClientConnectionManager

Properties

bootstrap: undefined | ClientBootstrap

(native only) leave undefined

host: string

endpoint to pool connections for

initial_window_size: number

(native only) leave as zero

max_connections: number

maximum allowed connection count

port: number

port to connect to

proxy_options?: HttpProxyOptions

configuration for establishing connections through a proxy

socket_options?: SocketOptions

(native only) leave null

if not null TLS will be used, otherwise plain http will be used

Methods

  • Closes all connections and rejects all pending requests

    Returns void

  • Returns an unused connection to the pool

    Parameters

    Returns void

Generated using TypeDoc