Optional
opts: HttpsProxyAgentOptions<Uri>Readonly
freeReadonly
proxyReadonly
requestsReadonly
socketsStatic
Readonly
captureStatic
captureSets or gets the default captureRejection value for all emitters.
Static
defaultStatic
Readonly
errorThis symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Static
protocolsRest
...args: any[]Called when the node-core HTTP client library is creating a new HTTP request.
Optional
s: DuplexDestroy any sockets that are currently in use by the agent. It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled, then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise, sockets may hang open for quite a long time before the server terminates them.
Determine whether this is an http
or https
request.
Optional
options: AgentConnectOptsRest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Optional
event: string | symbolRest
...args: any[]Static
listenerStatic
onStatic
onceGenerated using TypeDoc
The
HttpsProxyAgent
implements an HTTP Agent subclass that connects to the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.Outgoing HTTP requests are first tunneled through the proxy server using the
CONNECT
HTTP request method to establish a connection to the proxy server, and then the proxy server connects to the destination target and issues the HTTP request from the proxy server.https:
requests have their socket connection upgraded to TLS once the connection to the proxy server has been established.