Class: HttpProxy

HttpProxy


new HttpProxy(opts)

HTTP Proxy.

Parameters:
Name Type Description
opts object

Proxy options.

Properties
Name Type Description
url string

URL which should be proxied. them from cache.

Source:

Methods


setUrl(targetUrl)

Sets proxied URL.

Parameters:
Name Type Description
targetUrl string

URL which should be proxied.

Source:

<async> start()

Starts proxy server if it’s not started yet.

Source:
Returns:
  • Proxy URL.
Type
Promise.<string>

stop()

Stops proxy server if it’s not stopped yet.

Source: