[][src]Struct embedded_websocket::HttpHeader

pub struct HttpHeader {
    pub path: String<U128>,
    pub websocket_context: Option<WebSocketContext>,
}

An http header struct that exposes websocket details

Fields

path: String<U128>

The request uri (e.g. /chat?id=123) of the GET method used to identify the endpoint of the connection. This allows multiple domains to be served by a single server. This could also be used to send identifiable information about the client

websocket_context: Option<WebSocketContext>

If the http header was a valid upgrade request then this could contain the websocket detail relating to it

Auto Trait Implementations

impl Send for HttpHeader

impl Sync for HttpHeader

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self