pub struct Manager { /* private fields */ }
Available on crate feature
reverse-proxy
only.Implementations§
source§impl Manager
impl Manager
sourcepub fn new(when: If, connection: GetConnectionFn, timeout: Duration) -> Self
pub fn new(when: If, connection: GetConnectionFn, timeout: Duration) -> Self
Consider using static_connection
if your connection type is not dependent of the request.
sourcepub fn disable_url_rewrite(self) -> Self
pub fn disable_url_rewrite(self) -> Self
Disables the built-in feature of rewriting the relative URLs so they point to the forwarded site.
NOTE that rewrite doesn’t work when the response body is streamed.