Trait pretend::client::Client [−][src]
pub trait Client { #[must_use] fn execute<'life0, 'async_trait>(
&'life0 self,
method: Method,
url: Url,
headers: HeaderMap,
body: Option<Bytes>
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
pretend
Client
See module level documentation for more information.
Required methods
#[must_use]fn execute<'life0, 'async_trait>(
&'life0 self,
method: Method,
url: Url,
headers: HeaderMap,
body: Option<Bytes>
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn execute<'life0, 'async_trait>(&'life0 self,
method: Method,
url: Url,
headers: HeaderMap,
body: Option<Bytes>
) -> Pin<Box<dyn Future<Output = Result<Response<Bytes>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Execute a request