Struct async_web_server::WsUpgradeRequest
source · 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> 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§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§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