Trait HttpTransport
pub trait HttpTransport:
Send
+ Sync
+ Unpin
+ 'static {
// Required method
fn fetch(
&self,
req: Request<Buffer>,
) -> impl Future<Output = Result<Response<HttpBody>, Error>> + Send;
}Expand description
HTTP transport used by OpenDAL services.
Implement this trait to provide a custom HTTP backend. A transport must
support 3xx redirection.
It can support HttpRedirect to let services reuse redirect destinations.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.