This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
Allowing to overwrite default http/https clients
Changes:
-
Dependencies are updated to latest versions.
-
By using optional
requests.http
andrequests.https
configurations we allow to overwrite the internalhttp
andhttps
client agents implementation. Defaults:http
andhttps
.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
orhttp2
this settings are ignored!