pub enum SendRequest {
Http1(SendRequest<BoxBody<Bytes, Error>>),
Http2(SendRequest<BoxBody<Bytes, Error>>),
}Expand description
A wrapper around Hyper’s SendRequest that can be used with multiple HTTP versions
Variants§
Implementations§
Source§impl SendRequest
impl SendRequest
Sourcepub async fn send_request(
&mut self,
request: Request<BoxBody<Bytes, Error>>,
) -> Result<Response<Incoming>, Error>
pub async fn send_request( &mut self, request: Request<BoxBody<Bytes, Error>>, ) -> Result<Response<Incoming>, Error>
Send an HTTP request to the related connection.
Auto Trait Implementations§
impl Freeze for SendRequest
impl !RefUnwindSafe for SendRequest
impl Send for SendRequest
impl Sync for SendRequest
impl Unpin for SendRequest
impl UnsafeUnpin for SendRequest
impl !UnwindSafe for SendRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more