Trait anterofit::net::ObjSafeAdapter [] [src]

pub trait ObjSafeAdapter: Send + 'static {
    fn intercept(&self, head: &mut RequestHead);
    fn execute(&self, exec: Box<ExecBox>);
    fn request_builder(&self, head: &RequestHead) -> Result<NetRequestBuilder>;
}

Object-safe subset of the adapter API.

Required Methods

Pass head to this adapter's interceptor for modification.

Execute exec on this adapter's executor.

Initialize a hyper::client::RequestBuilder from head.

Implementors