Skip to content

Commit f798628

Browse files
authored
feat: mark EnvHttpProxyAgent as stable (nodejs#4049)
* docs: mark `EnvHttpProxyAgent` as stable * remove experimental warning
1 parent d685d38 commit f798628

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

docs/docs/api/EnvHttpProxyAgent.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Class: EnvHttpProxyAgent
22

3-
Stability: Experimental.
4-
53
Extends: `undici.Dispatcher`
64

75
EnvHttpProxyAgent automatically reads the proxy configuration from the environment variables `http_proxy`, `https_proxy`, and `no_proxy` and sets up the proxy agents accordingly. When `http_proxy` and `https_proxy` are set, `http_proxy` is used for HTTP requests and `https_proxy` is used for HTTPS requests. If only `http_proxy` is set, `http_proxy` is used for both HTTP and HTTPS requests. If only `https_proxy` is set, it is only used for HTTPS requests.

lib/dispatcher/env-http-proxy-agent.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ const DEFAULT_PORTS = {
1010
'https:': 443
1111
}
1212

13-
let experimentalWarned = false
14-
1513
class EnvHttpProxyAgent extends DispatcherBase {
1614
#noProxyValue = null
1715
#noProxyEntries = null
@@ -21,13 +19,6 @@ class EnvHttpProxyAgent extends DispatcherBase {
2119
super()
2220
this.#opts = opts
2321

24-
if (!experimentalWarned) {
25-
experimentalWarned = true
26-
process.emitWarning('EnvHttpProxyAgent is experimental, expect them to change at any time.', {
27-
code: 'UNDICI-EHPA'
28-
})
29-
}
30-
3122
const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts
3223

3324
this[kNoProxyAgent] = new Agent(agentOpts)

0 commit comments

Comments
 (0)