WithAuthorization

Trait WithAuthorization 

Source
pub trait WithAuthorization: HttpRequest + Sized {
    // Provided method
    fn with_authorization<A: Authorization>(
        self,
        authorization: A,
    ) -> AuthorizedHttpRequest<A, Self> { ... }
}
Expand description

Trait for adding authorization information to http requests

Provided Methods§

Source

fn with_authorization<A: Authorization>( self, authorization: A, ) -> AuthorizedHttpRequest<A, Self>

Augment the request with authorization information

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§