pub trait Interceptor: Debug {
    // Required methods
    fn intercept(&mut self, req: &Request) -> RequestOptions;
    fn clone_box(&self) -> Box<dyn Interceptor>;
}
Expand description

§Interceptor

Interceptor trait that needs to be implemented if you want to intercept and customize the requests made by this client.

Required Methods§

source

fn intercept(&mut self, req: &Request) -> RequestOptions

This method which is called before making a request

source

fn clone_box(&self) -> Box<dyn Interceptor>

Clones the Interceptor

Implementors§