pub trait AsyncRequestTrait: Send + Debug {
type RequestResult: Sized;
// Required method
fn send(
&mut self,
) -> Pin<Box<dyn Future<Output = Self::RequestResult> + Send + '_>>;
}
Expand description
Asynchronous HTTP request trait.
Defines the interface for sending asynchronous HTTP requests.
Required Associated Types§
Sourcetype RequestResult: Sized
type RequestResult: Sized
The result type of the asynchronous request.