pub trait HttpFetch: Send + Sync + Unpin + 'static {
// Required method
fn fetch(
&self,
req: Request<Buffer>,
) -> impl Future<Output = Result<Response<HttpBody>>> + MaybeSend;
}
Expand description
HttpFetch is the trait to fetch a request in async way. User should implement this trait to provide their own http client.
Required Methods§
Object Safety§
This trait is not object safe.