Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProxyOptions

Proxy options for a net client or a net client.

Hierarchy

  • ProxyOptions

Index

Constructors

constructor

  • Returns ProxyOptions

  • Parameters

    Returns ProxyOptions

Methods

getHost

  • getHost(): string
  • Set proxy host.

    Returns string

getPassword

  • getPassword(): string
  • Set proxy password.

    Returns string

getPort

  • getPort(): number
  • Set proxy port.

    Returns number

getType

  • Set proxy type.

    ProxyType can be HTTP, SOCKS4 and SOCKS5

    Returns ProxyType

getUsername

  • getUsername(): string
  • Set proxy username.

    Returns string

setHost

  • Set proxy host.

    Parameters

    • host: string

    Returns ProxyOptions

setPassword

  • Set proxy password.

    Parameters

    • password: string

    Returns ProxyOptions

setPort

  • Set proxy port.

    Parameters

    • port: number

    Returns ProxyOptions

setType

  • Set proxy type.

    ProxyType can be HTTP, SOCKS4 and SOCKS5

    Parameters

    Returns ProxyOptions

setUsername

  • Set proxy username.

    Parameters

    • username: string

    Returns ProxyOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc