Registry / web-framework / warp-reverse-proxy

warp-reverse-proxy

JSON →
library2.0.0rscratesunverified

Warp filter that acts as a reverse proxy, forwarding requests to a proxy address and extracting responses.

# Cargo.toml [dependencies] warp-reverse-proxy = "2.0.0"
INSTALL
IMPORT
SIG · WARP-REVERSE-PROXY
W
warp-reverse-proxy
web-frameworkrustv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

reverse_proxy_filter
use warp_reverse_proxy::reverse_proxy_filter;

Sets up a reverse proxy forwarding to a backend.

use warp_reverse_proxy::reverse_proxy_filter; use warp::Filter; #[tokio::main] async fn main() { let proxy = warp::any().and_then(reverse_proxy_filter("http://backend:8080")); warp::serve(proxy).run(([0,0,0,0], 3030)).await; }
Debug
Known issues
gotchaRequires tokio runtime for async execution.
fix
Add tokio as a dependency and use #[tokio::main].
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
warp-reverse-proxy — cargo add warp-reverse-proxy · libregistry