Closed snooc closed 5 years ago
I was running into an issue with NodeJS connection pooling that required me to use a custom HTTPS Agent.
This PR allows a custom agent to be passed in using the following logic:
undefined
false
http
https
https.Agent
Custom agent implemented in: https://github.com/apocas/docker-modem/pull/103
I was running into an issue with NodeJS connection pooling that required me to use a custom HTTPS Agent.
This PR allows a custom agent to be passed in using the following logic:
undefined
will default to global objectfalse
will disable connection ppolinghttp
protocol will use the http module andhttps
will use the https modulehttps.Agent
orhttps.Agent
will be passed through.