http: add http.setGlobalProxyFromEnv()
This adds an API to dynamically enable built-in proxy support for all of fetch() and http.request()/https.request(), so that users do not have to be aware of them all and configure them one by one.
Review requested:
- [ ] @nodejs/crypto
- [ ] @nodejs/http
- [ ] @nodejs/net
Codecov Report
:x: Patch coverage is 93.18182% with 6 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 88.51%. Comparing base (644fb88) to head (ae24120).
:warning: Report is 49 commits behind head on main.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| lib/http.js | 95.00% | 3 Missing :warning: |
| lib/internal/http.js | 87.50% | 2 Missing and 1 partial :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #60953 +/- ##
==========================================
- Coverage 88.51% 88.51% -0.01%
==========================================
Files 703 703
Lines 208394 208500 +106
Branches 40193 40212 +19
==========================================
+ Hits 184470 184560 +90
- Misses 15934 15958 +24
+ Partials 7990 7982 -8
| Files with missing lines | Coverage Δ | |
|---|---|---|
| lib/_http_agent.js | 97.30% <100.00%> (-0.02%) |
:arrow_down: |
| lib/https.js | 98.22% <100.00%> (-0.02%) |
:arrow_down: |
| lib/http.js | 98.83% <95.00%> (-1.17%) |
:arrow_down: |
| lib/internal/http.js | 92.11% <87.50%> (-3.66%) |
:arrow_down: |
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
CI: https://ci.nodejs.org/job/node-test-pull-request/70399/
CI: https://ci.nodejs.org/job/node-test-pull-request/70427/
The https://github.com/nodejs/node/labels/notable-change label has been added by @joyeecheung.
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section.
CI: https://ci.nodejs.org/job/node-test-pull-request/70430/
Landed in c0108bfc55032d06ed0e9fe2802b437603b80a7d