[][src]Trait checkout::http::HttpHandler

pub trait HttpHandler {
    fn http_client(&self) -> &HttpClient;
fn secret_key(&self) -> &str;
fn base_url(&self) -> &str; fn run_request<T, U>(
        &self,
        method: Method,
        url: Url,
        body: &U
    ) -> Result<T, JsonErrors>
    where
        U: Serialize,
        T: DeserializeOwned
, { ... } }

Required methods

fn http_client(&self) -> &HttpClient

fn secret_key(&self) -> &str

fn base_url(&self) -> &str

Loading content...

Provided methods

fn run_request<T, U>(
    &self,
    method: Method,
    url: Url,
    body: &U
) -> Result<T, JsonErrors> where
    U: Serialize,
    T: DeserializeOwned

Loading content...

Implementors

impl HttpHandler for Client[src]

Loading content...