Struct http_tiny::HeaderStartLine
source · 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, U>(status: T, reason: U) -> Self
pub fn new_response<T, U>(status: T, reason: U) -> 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 Cow<'static, [u8]>
pub fn request_method_mut(&mut self) -> &mut Cow<'static, [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 Cow<'static, [u8]>
pub fn request_target_mut(&mut self) -> &mut Cow<'static, [u8]>
Interprets the start line as request and returns the field containing the request target
sourcepub fn request_version(&self) -> &[u8] ⓘ
pub fn request_version(&self) -> &[u8] ⓘ
Interprets the start line as request and returns the field containing the HTTP version
sourcepub fn request_version_mut(&mut self) -> &mut Cow<'static, [u8]>
pub fn request_version_mut(&mut self) -> &mut Cow<'static, [u8]>
Interprets the start line as request and returns the field containing the HTTP version
sourcepub fn response_version(&self) -> &[u8] ⓘ
pub fn response_version(&self) -> &[u8] ⓘ
Interprets the start line as response and returns the field containing the HTTP version
sourcepub fn response_version_mut(&mut self) -> &mut Cow<'static, [u8]>
pub fn response_version_mut(&mut self) -> &mut Cow<'static, [u8]>
Interprets the start line as response and returns the field containing the HTTP version
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 Cow<'static, [u8]>
pub fn response_binstatus_mut(&mut self) -> &mut Cow<'static, [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 Cow<'static, [u8]>
Trait Implementations§
source§impl Clone for HeaderStartLine
impl Clone for HeaderStartLine
source§fn clone(&self) -> HeaderStartLine
fn clone(&self) -> HeaderStartLine
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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,
source§impl PartialEq for HeaderStartLine
impl PartialEq for HeaderStartLine
source§fn eq(&self, other: &HeaderStartLine) -> bool
fn eq(&self, other: &HeaderStartLine) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for HeaderStartLine
impl PartialOrd for HeaderStartLine
source§fn partial_cmp(&self, other: &HeaderStartLine) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderStartLine) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more