node-modules/agentkeepalive

Auto https.

DylanPiercey opened this issue · 4 comments

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.

agentkeepalive API just keep as same as orignal http.Agent, including the usage.

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.

It's hard to detect the going request is http or https.

Alright thanks for pointing this out!