Auto https.
DylanPiercey opened this issue · 4 comments
DylanPiercey commented
It would be nice if one keep alive agent could automatically switch between http and https requests. I believe it use to work this way but then the api's were separated.
fengmk2 commented
agentkeepalive API just keep as same as orignal http.Agent, including the usage.
DylanPiercey commented
I believe the default http.Agent (in this module) used to work with https as well, is this wrong?
If this is not possible thats fine, it would just be convenient to be able to share the same agent across http(s) requests.
fengmk2 commented
- http request use
http.Agent
- https request use
https.Agent
https://nodejs.org/api/https.html#https_class_https_agent
It's hard to detect the going request is http or https.
DylanPiercey commented
Alright thanks for pointing this out!