Struct sota::http::auth_client::AuthClient
[−]
[src]
pub struct AuthClient {
// some fields omitted
}The AuthClient will attach an Authentication header to each outgoing request.
Methods
impl AuthClient[src]
fn from(auth: Auth) -> Self
Create a new HTTP client for the given Auth type.
fn set_auth(&mut self, auth: Auth)
Set the Authorization headers that are used for each outgoing request.