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.

Trait Implementations

impl Default for AuthClient
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl Client for AuthClient
[src]

fn chan_request(&self, req: Request, resp_tx: Sender<Response>)

fn send_request(&self, req: Request) -> Receiver<Response>

fn get(&self, url: Url, body: Option<Vec<u8>>) -> Receiver<Response>

fn post(&self, url: Url, body: Option<Vec<u8>>) -> Receiver<Response>

fn put(&self, url: Url, body: Option<Vec<u8>>) -> Receiver<Response>

fn is_testing(&self) -> bool