-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
I noticed that this crate supports upstream proxy before in b7a2136
But it was removed in 408999b
This is a very useful feature and might be worth it to bring it back?
I would like to propose a more flexible design instead of the original implementation by adding this to HttpHandler which will give an option to route traffic based on request or rotate from a list of upstream proxies
pub trait HttpHandler: Clone + Send + Sync + 'static {
async fn get_upstream_proxy(&mut self, _ctx: &HttpContext, _req: &Request<Body>) -> String {
// return upstream URL string here
}
}dilawar, zer0yu and PeterDing
Metadata
Metadata
Assignees
Labels
No labels