Class: GlobalProxy

GlobalProxy

  • Contains methods to run and manage global transparent proxy.

new GlobalProxy( [opts])

Creates new instance of GlobalProxy.

Parameters:
Name Type Argument Description
opts object <optional>

global proxy options

Properties
Name Type Argument Default Description
port number <optional>
0

global proxy port

timeout number <optional>
0

global proxy timeout

installCertificate boolean <optional>
false

flag to install global proxy certificate as trusted in order to manage https connection or no

rootPath string <optional>
<nullable>

Folder where proxy starts in order to generate self-signed certificate. By default is current work directory.

useCache boolean <optional>
false

flag to cache and take from cache responses

Source:

Methods


<async> start()

Starts global proxy if it's not started yet.

Source:

stop()

Stops global proxy if it's not stopped yet.

Source: