Yichen Jiang
8470ddef1d
refactor(http-proxy): converge the proxy API on four functions
...
The package exported six functions, four of them shaped by one SDK's
transport each: a dispatcher factory, a `node:http` agent factory, a
proxy-URL lookup, and a policy accessor. Review asked whether the call
sites could converge instead of the package growing an export per SDK.
They could, and each removal took a whole shape with it:
- The OTLP exporter moves to the SDK's `fetch` delegate, retiring
`createNodeHttpAgent`. Its Node-version floor goes too: `proxyEnv` on
an `http.Agent` needs 22.21 or 24.5, inside the engines range, so
telemetry was direct on 22.19, 22.20, and 24.0-24.4. The cost is
`compression`, a Node-transport option; the plugin now refuses it,
`keepAlive`, and `httpAgentOptions` at load instead of ignoring them.
- `web-fetch-http` builds its own address-pinning agent under an
annotated `proxy-exempt:` exemption, retiring `createDispatcher`.
Pinning is per-request state a process-wide dispatcher cannot hold.
- E2B reads `route.proxy`, retiring `proxyUrlFor`.
What remains is `installProxyFromEnvironment`, `proxyRouteFor`,
`proxyEnvironmentForChild`, and `clearedProxyEnv` — one per way a caller
can need the policy. Installation absorbs resolution and diagnostic
reporting, which no caller needed apart.
`proxyRouteFor` also closes a defect the old accessor made expressible:
`web-fetch-http` read the policy to decide whether to pin, then read it
again to build a transport, so an unmount between the two returned a
direct, unpinned agent for a URL the first read had cleared as proxied.
A route carries the answer and the transport that answer assumed.
Every egress spec now installs through `installProxyFromEnvironment`, so
no test asserts a policy object a real launch could not produce.
2026-09-01 21:15:04 +08:00
..
2026-08-13 13:58:03 +08:00
2026-08-30 19:50:51 +08:00
2026-08-26 08:01:07 +00:00
2026-08-19 18:21:26 +08:00
2026-07-26 23:29:46 +08:00
2026-08-29 15:31:12 +08:00
2026-07-27 00:53:07 +08:00
2026-08-10 16:34:20 +08:00
2026-08-06 16:38:25 +08:00
2026-08-29 14:26:42 +08:00
2026-08-29 14:26:42 +08:00
2026-08-29 20:19:38 +08:00
2026-08-29 14:26:42 +08:00
2026-08-31 15:50:45 +08:00
2026-08-24 19:09:40 +08:00
2026-08-24 19:09:40 +08:00
2026-08-24 19:09:40 +08:00
2026-08-31 15:50:45 +08:00
2026-08-24 19:09:40 +08:00
2026-08-24 15:04:00 +08:00
2026-08-09 16:39:41 +08:00
2026-07-28 01:02:43 +08:00
2026-08-11 20:09:33 +08:00
2026-08-28 13:12:52 +08:00
2026-09-01 11:54:10 +08:00
2026-08-31 16:27:41 +08:00
2026-08-19 18:21:27 +08:00
2026-08-19 18:21:27 +08:00
2026-08-24 15:04:00 +08:00
2026-08-24 15:04:00 +08:00
2026-08-18 01:34:21 +08:00
2026-08-30 02:29:52 +08:00
2026-08-13 02:29:17 +08:00
2026-08-24 22:02:44 +08:00
2026-07-23 00:39:55 +08:00
2026-08-09 01:31:57 +08:00
2026-08-11 15:23:05 +08:00
2026-08-10 22:04:13 +08:00
2026-08-18 14:38:42 +08:00
2026-08-24 22:02:44 +08:00
2026-08-31 12:00:05 +08:00
2026-08-29 11:15:32 +08:00
2026-08-29 11:15:32 +08:00
2026-08-06 03:18:17 +08:00
2026-08-27 23:14:31 +08:00
2026-08-24 15:04:01 +08:00
2026-08-24 15:04:01 +08:00
2026-09-01 11:01:05 +08:00
2026-08-31 14:56:11 +08:00
2026-08-13 00:54:38 +08:00
2026-08-27 22:26:29 +08:00
2026-08-10 16:34:20 +08:00
2026-08-13 01:33:31 +08:00
2026-08-22 13:10:23 +08:00
2026-08-21 22:22:23 +08:00
2026-07-29 23:55:12 +08:00
2026-08-10 22:04:13 +08:00
2026-08-19 02:26:57 +08:00
2026-08-30 12:00:06 +08:00
2026-08-27 21:57:56 +08:00
2026-07-30 19:57:17 +08:00
2026-08-31 15:25:26 +08:00
2026-08-29 14:26:42 +08:00
2026-08-30 14:17:44 +08:00
2026-08-10 22:04:13 +08:00
2026-08-27 12:00:02 +08:00
2026-08-31 15:33:16 +08:00
2026-08-28 10:59:30 +08:00
2026-08-19 02:26:57 +08:00
2026-08-27 19:39:21 +08:00
2026-08-27 20:02:10 +08:00
2026-08-12 19:41:06 +08:00
2026-08-29 11:15:32 +08:00
2026-08-11 15:23:05 +08:00
2026-08-21 20:35:34 +08:00
2026-08-18 17:56:49 +08:00
2026-08-18 19:37:53 +08:00
2026-08-09 00:37:46 +08:00
2026-08-19 02:26:57 +08:00
2026-08-18 18:27:01 +08:00
2026-08-26 17:17:47 +08:00
2026-08-30 02:29:52 +08:00
2026-08-29 14:26:42 +08:00
2026-08-23 16:28:19 +08:00
2026-08-31 17:10:53 +08:00
2026-08-31 17:10:53 +08:00
2026-07-26 02:52:48 +08:00
2026-07-26 02:52:48 +08:00
2026-08-21 11:09:25 +08:00
2026-08-21 11:09:25 +08:00
2026-08-20 10:05:16 +08:00
2026-08-26 14:33:17 +08:00
2026-08-20 22:10:35 +08:00
2026-08-08 12:25:41 +08:00
2026-08-08 12:25:41 +08:00
2026-08-13 00:54:38 +08:00
2026-08-13 00:54:38 +08:00
2026-08-18 01:34:53 +08:00
2026-08-21 20:35:32 +08:00
2026-08-19 15:42:12 +08:00
2026-07-27 00:53:07 +08:00
2026-08-10 22:04:10 +08:00
2026-08-31 11:23:30 +08:00
2026-08-18 21:15:20 +08:00
2026-09-01 11:15:18 +08:00
2026-09-01 11:15:18 +08:00
2026-08-23 16:28:19 +08:00
2026-08-23 16:28:19 +08:00
2026-08-21 11:09:25 +08:00
2026-08-26 08:01:07 +00:00
2026-08-26 08:01:07 +00:00
2026-08-24 22:02:44 +08:00
2026-08-13 01:29:36 +08:00
2026-08-27 16:25:12 +08:00
2026-08-29 11:50:13 +08:00
2026-08-13 15:16:12 +08:00
2026-08-31 14:38:55 +08:00
2026-08-31 17:16:58 +08:00
2026-09-01 11:01:05 +08:00
2026-09-01 11:01:05 +08:00
2026-08-19 03:01:11 +08:00
2026-08-19 03:01:11 +08:00
2026-08-19 04:08:47 +08:00
2026-08-19 03:56:17 +08:00
2026-08-21 22:22:23 +08:00
2026-08-28 10:21:45 +08:00
2026-08-19 03:47:00 +08:00
2026-08-08 21:11:59 +08:00
2026-08-09 11:02:16 +08:00
2026-08-25 23:47:20 +08:00
2026-08-24 17:28:26 +08:00
2026-08-24 21:37:14 +08:00
2026-08-19 02:26:57 +08:00
2026-08-10 16:34:20 +08:00
2026-08-14 16:10:06 +08:00
2026-08-28 10:59:30 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-27 23:14:31 +08:00
2026-08-27 23:14:31 +08:00
2026-08-10 16:34:20 +08:00
2026-08-28 13:12:52 +08:00
2026-08-28 13:12:52 +08:00
2026-08-18 01:34:25 +08:00
2026-08-18 01:34:25 +08:00
2026-08-29 14:26:42 +08:00
2026-08-29 14:26:42 +08:00
2026-08-23 21:22:41 +08:00
2026-08-23 21:22:41 +08:00
2026-08-14 16:05:48 +08:00
2026-08-24 22:02:44 +08:00
2026-08-24 22:02:44 +08:00
2026-08-24 22:02:44 +08:00
2026-08-24 22:02:44 +08:00
2026-08-20 22:10:15 +08:00
2026-08-20 22:10:35 +08:00
2026-08-13 13:07:24 +08:00
2026-08-13 13:07:24 +08:00
2026-08-21 22:22:23 +08:00
2026-08-09 10:56:43 +08:00
2026-08-24 22:02:44 +08:00
2026-08-24 22:02:44 +08:00
2026-08-24 22:02:44 +08:00
2026-09-01 21:15:04 +08:00
2026-09-01 21:15:04 +08:00
2026-08-11 15:23:05 +08:00
2026-08-29 14:26:42 +08:00
2026-08-29 14:26:42 +08:00
2026-08-14 16:10:06 +08:00
2026-08-21 22:22:23 +08:00
2026-08-30 02:29:52 +08:00
2026-08-30 02:29:52 +08:00
2026-08-10 16:34:20 +08:00
2026-08-24 22:02:44 +08:00
2026-08-30 02:29:52 +08:00
2026-09-01 13:39:50 +08:00
2026-08-11 12:35:38 +08:00
2026-08-11 12:35:38 +08:00
2026-08-24 19:09:40 +08:00
2026-08-24 19:09:40 +08:00
2026-08-10 18:04:26 +08:00
2026-08-10 18:04:26 +08:00
2026-08-23 16:02:32 +08:00
2026-09-01 11:01:05 +08:00
2026-08-19 02:26:57 +08:00
2026-08-13 13:07:57 +08:00
2026-08-23 16:16:04 +08:00
2026-08-02 01:25:01 +08:00
2026-07-30 21:49:33 +08:00
2026-08-23 01:48:35 +08:00