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.

source

pub fn with_priority(self, priority: i32) -> Self