[][src]Trait eiktyrner::HttpClient

pub trait HttpClient where
    Self: Send + Sync + Sized
{ #[must_use] pub fn perform<'life0, 'async_trait>(
        &'life0 self,
        r: Request<Body>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; #[must_use] pub fn send<'life0, 'async_trait, Req, Res>(
        &'life0 self,
        r: Request<Req>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Res::Data>, Error>> + Send + 'async_trait>>
    where
        Req: RequestContent + Send,
        Res: ResponseContent,
        Req: 'async_trait,
        Res: 'async_trait,
        'life0: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
pub fn https() -> HttpsClient { ... } }

Required methods

#[must_use]pub fn perform<'life0, 'async_trait>(
    &'life0 self,
    r: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Provided methods

#[must_use]pub fn send<'life0, 'async_trait, Req, Res>(
    &'life0 self,
    r: Request<Req>
) -> Pin<Box<dyn Future<Output = Result<Response<Res::Data>, Error>> + Send + 'async_trait>> where
    Req: RequestContent + Send,
    Res: ResponseContent,
    Req: 'async_trait,
    Res: 'async_trait,
    'life0: 'async_trait,
    Self: Sync + 'async_trait, 
[src]

pub fn https() -> HttpsClient[src]

Loading content...

Implementors

impl HttpClient for HttpsClient[src]

Loading content...