Struct soketto::handshake::server::RequestHeaders
source · pub struct RequestHeaders<'a> {
pub host: &'a [u8],
pub origin: Option<&'a [u8]>,
}
Expand description
Select HTTP headers sent by the client.
Fields§
§host: &'a [u8]
The Host
header.
origin: Option<&'a [u8]>
The Origin
header, if provided.
Trait Implementations§
source§impl<'a> Clone for RequestHeaders<'a>
impl<'a> Clone for RequestHeaders<'a>
source§fn clone(&self) -> RequestHeaders<'a>
fn clone(&self) -> RequestHeaders<'a>
Returns a copy 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 moresource§impl<'a> Debug for RequestHeaders<'a>
impl<'a> Debug for RequestHeaders<'a>
impl<'a> Copy for RequestHeaders<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RequestHeaders<'a>
impl<'a> Send for RequestHeaders<'a>
impl<'a> Sync for RequestHeaders<'a>
impl<'a> Unpin for RequestHeaders<'a>
impl<'a> UnwindSafe for RequestHeaders<'a>
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