pub struct HttpServerHeaders {
pub addr: SocketAddr,
pub lines: Vec<String>,
pub verb: String,
pub path: String,
pub path_no_slash: String,
pub search: Option<String>,
pub content_length: Option<u64>,
pub accept_encoding: Option<String>,
pub sec_websocket_key: Option<String>,
}
Fields§
§addr: SocketAddr
§lines: Vec<String>
§verb: String
§path: String
§path_no_slash: String
§search: Option<String>
§content_length: Option<u64>
§accept_encoding: Option<String>
§sec_websocket_key: Option<String>
Implementations§
Source§impl HttpServerHeaders
impl HttpServerHeaders
pub fn from_tcp_stream(tcp_stream: &mut TcpStream) -> Option<HttpServerHeaders>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpServerHeaders
impl RefUnwindSafe for HttpServerHeaders
impl Send for HttpServerHeaders
impl Sync for HttpServerHeaders
impl Unpin for HttpServerHeaders
impl UnwindSafe for HttpServerHeaders
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