pub struct HeaderStartLine { /* private fields */ }Expand description
The start line
Implementations§
Source§impl HeaderStartLine
impl HeaderStartLine
Sourcepub fn new_request<T, U>(method: T, target: U) -> Self
pub fn new_request<T, U>(method: T, target: U) -> Self
Creates a new HTTP/1.1 request
Sourcepub fn new_response<T>(status: u16, reason: T) -> Self
pub fn new_response<T>(status: u16, reason: T) -> Self
Creates a new HTTP/1.1 response
Sourcepub fn request_method(&self) -> &[u8] ⓘ
pub fn request_method(&self) -> &[u8] ⓘ
Interprets the start line as request and returns the field containing the request method
Sourcepub fn request_method_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn request_method_mut(&mut self) -> &mut Vec<u8> ⓘ
Interprets the start line as request and returns the field containing the request method
Sourcepub fn request_target(&self) -> &[u8] ⓘ
pub fn request_target(&self) -> &[u8] ⓘ
Interprets the start line as request and returns the field containing the request target
Sourcepub fn request_target_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn request_target_mut(&mut self) -> &mut Vec<u8> ⓘ
Interprets the start line as request and returns the field containing the request target
Sourcepub fn response_binstatus(&self) -> &[u8] ⓘ
pub fn response_binstatus(&self) -> &[u8] ⓘ
Interprets the start line as response and returns the field containing the response status code
Sourcepub fn response_binstatus_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn response_binstatus_mut(&mut self) -> &mut Vec<u8> ⓘ
Interprets the start line as response and returns the field containing the response status code
Sourcepub fn response_reason(&self) -> &[u8] ⓘ
pub fn response_reason(&self) -> &[u8] ⓘ
Interprets the start line as response and returns the field containing the response status code
pub fn response_reason_mut(&mut self) -> &mut Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for HeaderStartLine
impl Clone for HeaderStartLine
Source§fn clone(&self) -> HeaderStartLine
fn clone(&self) -> HeaderStartLine
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 moreSource§impl Debug for HeaderStartLine
impl Debug for HeaderStartLine
Source§impl Ord for HeaderStartLine
impl Ord for HeaderStartLine
Source§fn cmp(&self, other: &HeaderStartLine) -> Ordering
fn cmp(&self, other: &HeaderStartLine) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HeaderStartLine
impl PartialEq for HeaderStartLine
Source§impl PartialOrd for HeaderStartLine
impl PartialOrd for HeaderStartLine
impl Eq for HeaderStartLine
impl StructuralPartialEq for HeaderStartLine
Auto Trait Implementations§
impl Freeze for HeaderStartLine
impl RefUnwindSafe for HeaderStartLine
impl Send for HeaderStartLine
impl Sync for HeaderStartLine
impl Unpin for HeaderStartLine
impl UnwindSafe for HeaderStartLine
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