pub trait HttpClient:
Debug
+ MaybeSend
+ MaybeSync {
// Required method
fn send_no_follow<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url,
headers: HeaderMap,
) -> Pin<Box<dyn Future<Output = Result<SendResponse, SendError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn send_no_follow<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url,
headers: HeaderMap,
) -> Pin<Box<dyn Future<Output = Result<SendResponse, SendError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_no_follow<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 Url,
headers: HeaderMap,
) -> Pin<Box<dyn Future<Output = Result<SendResponse, SendError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a request getting the response.
The implementation MUST not follow redirects. Return SendResponse::Redirect
in that case.
The implementation may retry the request on failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".