Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IProxyCustomOptions

Index

Properties

Properties

Optional auth

auth: string

if your proxy requires basic HTTP authentication information.

this auth pair will be sent via basic http auth (overriding IRequestSettings.authentication)

example

"username:password"

Optional authHeaders

authHeaders: object

new for Chrome backend. (not available on WebKit).

the headers that should be supplied for proxy authentication. they will be sent with every resource request

example

{"Proxy-Authorization":"Basic yoursecretkey"}

Type declaration

  • [name: string]: string

host

host: string

For Chrome backend, pass the full URL: such as http://proxy.example.com:8088.

For old WebKit backend: the address and port of the proxy server to use. ex: 192.168.1.42:8080 If your proxy requires a IP to whitelist, use api-static.phantomjscloud.com for your requests.

Optional type

type: string
deprecated:

old WebKit backend only. If using the Chrome backend, pass the type as part of the host parameter. for type of the proxy server. default is http available types are http, socks5, and none