kvarn_extensions::reverse_proxy

Struct Manager

source
pub struct Manager { /* private fields */ }
Available on crate feature reverse-proxy only.

Implementations§

source§

impl Manager

source

pub fn new(when: If, connection: GetConnectionFn, timeout: Duration) -> Self

Consider using static_connection if your connection type is not dependent of the request.

source

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.

source

pub fn with_priority(self, priority: