Trait Interceptor

Source
pub trait Interceptor:
    Fn(&mut HttpRequest)
    + Send
    + Sync
    + 'static { }
Expand description

Interceptor trait

Represents a function that “intercepts” a request. It can change it’s state or log it’s output.

Implementors§

Source§

impl<T> Interceptor for T
where T: Fn(&mut HttpRequest) + Send + Sync + 'static,