salvo-proxy
Installation
SKILL.md
Salvo Reverse Proxy
[dependencies]
salvo = { version = "0.94.0", features = ["proxy"] }
The proxy feature enables the hyper-client subfeature by default. For
reqwest-client or unix-sock-client, enable those features explicitly on
salvo-proxy.
Creating a Proxy
Proxy::new(upstreams, client) is the full constructor. upstreams is anything
implementing Upstreams — &'static str, String, Vec<_>, [_; N], or a
custom impl. Proxy<_, _> implements Handler, so mount it with .goal(...).