salvo-proxy
Salvo Reverse Proxy
[dependencies]
salvo = { version = "0.89.3", 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(...).
More from salvo-rs/salvo-skills
salvo-realtime
Implement real-time features using WebSocket and Server-Sent Events (SSE). Use for chat applications, live updates, notifications, and bidirectional communication.
17salvo-csrf
Implement CSRF (Cross-Site Request Forgery) protection using cookie or session storage. Use for protecting forms and state-changing endpoints.
17salvo-auth
Implement authentication and authorization using JWT, Basic Auth, or custom schemes. Use for securing API endpoints and user management.
16salvo-websocket
Implement WebSocket connections for real-time bidirectional communication. Use for chat, live updates, gaming, and collaborative features.
16salvo-cors
Configure Cross-Origin Resource Sharing (CORS) and security headers. Use for APIs accessed from browsers on different domains.
16salvo-database
Integrate databases with Salvo using SQLx, Diesel, SeaORM, or other ORMs. Use for persistent data storage and database operations.
16