pub fn with_client<S: Into<String>>(origin: S, mut hyper_client: hyper::Client) -> Self {
        hyper_client.set_redirect_policy(RedirectPolicy::FollowNone);

        Client {
            origin: origin.into(),
            cookie: Cookie(Vec::new()),
            client: hyper_client,
        }
    }
/// Creates a new API client, with a provided Hyper client.
/// This is useful for having the option of changing settings such as timeouts.
Creates a new API client, with a provided Hyper client.
This is useful for having the option of changing settings such as timeouts.
Creates a new API client with a provided Hyper client . This is useful for having the option of changing settings such as timeouts .
pub fn with_client<S: Into<String>>(origin: S, mut hyper_client: hyper::Client) -> Self {
        hyper_client.set_redirect_policy(RedirectPolicy::FollowNone);
        Client {
            origin: origin.into(),
            cookie: Cookie(Vec::new()),
            client: hyper_client,
        }
    }
pub fn with_client < S : Into < String > > ( origin : S , mut hyper_client : hyper :: Client ) -> Self { hyper_client . set_redirect_policy ( RedirectPolicy :: FollowNone ) ; Client { origin : origin . into ( ) , cookie : Cookie ( Vec :: new ( ) ) , client : hyper_client , } }
Creates a new API client, with a provided Hyper client.
Creates a new API client with a provided Hyper client .
origin
S
hyper_client
hyper::Client
origin
S
hyper_client
hyper::Client