pub trait HttpRequestBuilder {
type Response: HttpResponse;
type RequestError: Error + Send + Sync + Unpin;
// Required method
fn send(
self,
) -> impl Future<Output = PullResult<Self::Response, Self::RequestError>> + Send;
}Expand description
Abstraction over an HTTP request builder that can be sent to produce a response.
Required Associated Types§
Sourcetype Response: HttpResponse
type Response: HttpResponse
The response type produced on success.
Required Methods§
Sourcefn send(
self,
) -> impl Future<Output = PullResult<Self::Response, Self::RequestError>> + Send
fn send( self, ) -> impl Future<Output = PullResult<Self::Response, Self::RequestError>> + Send
Send the request, producing a response or a retryable error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".