Skip to main content

Http

Trait Http 

Source
pub trait Http {
    // Required method
    fn send(
        &self,
        request: Request,
    ) -> impl Future<Output = Result<Response, TransportError>>;
}
Expand description

One HTTP request out and its answer back, whatever the status. It knows nothing of networks or limits; an error means no answer at all (TransportError::Unreachable).

Required Methods§

Source

fn send( &self, request: Request, ) -> impl Future<Output = Result<Response, TransportError>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§