Trait uclient::ClientExt[][src]

pub trait ClientExt: Sync + Clone {
    fn new<U: Into<Option<HeaderMap>>>(headers: U) -> Result<Self, ClientError>;
fn headers(&mut self) -> &mut HeaderMap;
#[must_use] fn request<'life0, 'async_trait>(
        &'life0 self,
        request: Request<String>
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; #[must_use] fn get<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn post<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn put<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn delete<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn patch<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn connect<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn head<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn options<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
#[must_use] fn trace<'life0, 'async_trait, T>(
        &'life0 self,
        url: Url,
        text: T
    ) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
    where
        T: Into<String> + Send,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... } }

Required methods

fn new<U: Into<Option<HeaderMap>>>(headers: U) -> Result<Self, ClientError>[src]

fn headers(&mut self) -> &mut HeaderMap[src]

#[must_use]
fn request<'life0, 'async_trait>(
    &'life0 self,
    request: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Provided methods

#[must_use]
fn get<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn post<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn put<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn delete<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn patch<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn connect<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn head<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn options<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn trace<'life0, 'async_trait, T>(
    &'life0 self,
    url: Url,
    text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
    T: Into<String> + Send,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...