Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Allowing to overwrite default http/https clients

Compare
Choose a tag to compare
@jkyberneees jkyberneees released this 17 Apr 09:38
· 69 commits to master since this release

Changes:

  • Dependencies are updated to latest versions.

  • By using optional requests.http and requests.https configurations we allow to overwrite the internal http and https client agents implementation. Defaults: http and https.

    For example, this could be used to add support for following redirects, like so:

    ...
      requests: {
        http: require('follow-redirects/http'),
        https: require('follow-redirects/https')
      }
    ...

    If using undici or http2 this settings are ignored!