Proxy options for HTTP clients.

Hierarchy

Constructors

  • Parameters

    • host_name: string

      Name of the proxy server to connect through

    • port: number

      Port number of the proxy server to connect through

    • auth_method: HttpProxyAuthenticationType = HttpProxyAuthenticationType.None

      Type of proxy authentication to use. Default is None

    • Optional auth_username: string

      Username to use when auth_type is Basic

    • Optional auth_password: string

      Password to use when auth_type is Basic

    • Optional tls_opts: TlsConnectionOptions

      Optional TLS connection options for the connection to the proxy host. Must be distinct from the TlsConnectionOptions provided to the HTTP connection

    • Optional connection_type: HttpProxyConnectionType

      Optional Type of connection to make. If not specified, Legacy will be used.

    Returns HttpProxyOptions

Properties

auth_method: HttpProxyAuthenticationType = HttpProxyAuthenticationType.None

type of authentication to use with the proxy

auth_password?: string

(basic authentication only) password associated with the username

auth_username?: string

(basic authentication only) proxy username

connection_type?: HttpProxyConnectionType

Optional Type of connection to make. If not specified, Legacy will be used.

host_name: string

endpoint of the proxy to use

port: number

port of proxy to use

Optional TLS connection options for the connection to the proxy host. Must be distinct from the TlsConnectionOptions provided to the HTTP connection

Generated using TypeDoc