pub struct Http1Response {
pub version: Version,
pub status_code: u16,
pub reason_phrase: String,
pub headers: Vec<HttpHeader>,
pub content_length: Option<usize>,
pub transfer_encoding: Option<String>,
pub server: Option<String>,
pub content_type: Option<String>,
pub raw_status_line: String,
pub parsing_metadata: ParsingMetadata,
}
Fields§
§version: Version
§status_code: u16
§reason_phrase: String
§headers: Vec<HttpHeader>
§content_length: Option<usize>
§transfer_encoding: Option<String>
§server: Option<String>
§content_type: Option<String>
§raw_status_line: String
§parsing_metadata: ParsingMetadata
Trait Implementations§
Source§impl Clone for Http1Response
impl Clone for Http1Response
Source§fn clone(&self) -> Http1Response
fn clone(&self) -> Http1Response
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 Http1Response
impl RefUnwindSafe for Http1Response
impl Send for Http1Response
impl Sync for Http1Response
impl Unpin for Http1Response
impl UnwindSafe for Http1Response
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