pub struct HandshakeRequest {
pub method: String,
pub uri: String,
pub version: String,
pub headers: HashMap<String, String>,
pub body: Vec<u8>,
}Expand description
WebSocket handshake request information
Fields§
§method: StringHTTP method (should be GET)
uri: StringRequest URI
version: StringHTTP version
headers: HashMap<String, String>HTTP headers
body: Vec<u8>Request body (should be empty for WebSocket handshake)
Trait Implementations§
Source§impl Clone for HandshakeRequest
impl Clone for HandshakeRequest
Source§fn clone(&self) -> HandshakeRequest
fn clone(&self) -> HandshakeRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HandshakeRequest
impl RefUnwindSafe for HandshakeRequest
impl Send for HandshakeRequest
impl Sync for HandshakeRequest
impl Unpin for HandshakeRequest
impl UnwindSafe for HandshakeRequest
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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