pub struct HTTPMessage {
pub message_type: HTTPMessageType,
pub first_line: String,
pub headers: HashMap<String, String>,
pub body: Option<String>,
pub raw_data: String,
pub method: Option<String>,
pub path: Option<String>,
pub protocol: Option<String>,
pub status_code: Option<u16>,
pub status_text: Option<String>,
}Expand description
Parsed HTTP message
Fields§
§message_type: HTTPMessageType§first_line: String§headers: HashMap<String, String>§body: Option<String>§raw_data: String§method: Option<String>§path: Option<String>§protocol: Option<String>§status_code: Option<u16>§status_text: Option<String>Trait Implementations§
Source§impl Clone for HTTPMessage
impl Clone for HTTPMessage
Source§fn clone(&self) -> HTTPMessage
fn clone(&self) -> HTTPMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HTTPMessage
impl RefUnwindSafe for HTTPMessage
impl Send for HTTPMessage
impl Sync for HTTPMessage
impl Unpin for HTTPMessage
impl UnsafeUnpin for HTTPMessage
impl UnwindSafe for HTTPMessage
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