pub struct WsUpgradeRequest<IO: AsyncRead + AsyncWrite + Unpin> { /* private fields */ }
Implementations§
Source§impl<IO: AsyncRead + AsyncWrite + Unpin> WsUpgradeRequest<IO>
impl<IO: AsyncRead + AsyncWrite + Unpin> WsUpgradeRequest<IO>
Sourcepub fn into_inner(self) -> Request<IO>
pub fn into_inner(self) -> Request<IO>
Direct access to the request as http::Request and underlying transport. The transport may be extracted using
let transport = request.into_inner();
Sourcepub fn request_headers(&self) -> &HeaderMap
pub fn request_headers(&self) -> &HeaderMap
Access the original requests headers as http::HeaderMap.
Sourcepub fn method(&self) -> Method
pub fn method(&self) -> Method
Return the original requests method as http::Method.
Sourcepub fn version(&self) -> Version
pub fn version(&self) -> Version
Return the HTTP version as http::Version.
Trait Implementations§
Auto Trait Implementations§
impl<IO> !Freeze for WsUpgradeRequest<IO>
impl<IO> RefUnwindSafe for WsUpgradeRequest<IO>where
IO: RefUnwindSafe,
impl<IO> Send for WsUpgradeRequest<IO>where
IO: Send,
impl<IO> Sync for WsUpgradeRequest<IO>where
IO: Sync,
impl<IO> Unpin for WsUpgradeRequest<IO>
impl<IO> UnwindSafe for WsUpgradeRequest<IO>where
IO: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
Source§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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