web_ui: support unix:<path> upstreams in extraWebProxies
reqwest has no UDS transport, so unix: upstreams dial the socket directly with a raw hyper/1.1 client per request instead. http(s):// upstreams are unaffected (still go through the existing reqwest path). Adds hyper (client, http1), hyper-util (tokio IO adapter), and http-body-util as direct hive-ag3nt dependencies - all three were already present transitively via reqwest, this just uses them directly for the new code path.
This commit is contained in:
parent
cfeb4f0170
commit
476a7a3c9f
6 changed files with 127 additions and 5 deletions
|
|
@ -411,7 +411,11 @@ shaped).
|
|||
on both sides, and buffers the full response body (MVP — SSE
|
||||
connections will appear as one large response rather than streaming).
|
||||
The `/extra/` namespace ensures user-declared proxies can never
|
||||
conflict with native agent endpoints. Implemented in `web_ui/proxy.rs`.
|
||||
conflict with native agent endpoints. Upstream values are either an
|
||||
`http(s)://` URL (forwarded via `reqwest`) or a Unix domain socket,
|
||||
spelled `unix:<path>` (e.g. `unix:/run/myapp/http.sock`) — dialed
|
||||
directly with a raw HTTP/1.1 client per request, since `reqwest` has
|
||||
no UDS transport. Implemented in `web_ui/proxy.rs`.
|
||||
|
||||
Bus events (new vocabulary on `/events/stream`):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue