ethanent / phin

Node HTTP client
MIT License
576 stars 33 forks source link

Added http request agent support #32

Closed pxjohnny closed 5 years ago

ethanent commented 5 years ago

Thank you for the PR!

I appreciate the request, and will look into adding support for modifying core HTTP request options.

I will be closing this PR because I will be adding support for the modification of all core HTTP request options, instead of implementing each one individually.

ethanent commented 5 years ago

✔️ phin 3.3.0 adds this functionality!

await p({
   'url': 'https://ethanent.me',
   'core': {
      'agent': myAgent // Assuming you'd previously created Agent myAgent
   }
})

Thank you for your suggestion. 😄