Enum webparse::http::HeaderValue
source · pub enum HeaderValue {
Stand(&'static str),
Value(Vec<u8>),
}
Variants§
Implementations§
source§impl HeaderValue
impl HeaderValue
pub fn from_static(s: &'static str) -> HeaderValue
pub fn from_bytes(b: &[u8]) -> HeaderValue
pub fn from_cow(b: Cow<'_, [u8]>) -> HeaderValue
pub fn bytes_len(&self) -> usize
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_string(&self) -> Option<String>
pub fn push(&mut self, value: HeaderValue)
pub fn encode<B: Buf + BufMut>(&self, buffer: &mut B) -> WebResult<usize>
pub fn contains(&self, bytes: &[u8]) -> bool
Trait Implementations§
source§impl Clone for HeaderValue
impl Clone for HeaderValue
source§fn clone(&self) -> HeaderValue
fn clone(&self) -> HeaderValue
Returns a copy 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 HeaderValue
impl Debug for HeaderValue
source§impl Display for HeaderValue
impl Display for HeaderValue
source§impl Hash for HeaderValue
impl Hash for HeaderValue
source§impl PartialEq<&str> for HeaderValue
impl PartialEq<&str> for HeaderValue
source§impl PartialEq<[u8]> for HeaderValue
impl PartialEq<[u8]> for HeaderValue
source§impl PartialEq<HeaderValue> for &str
impl PartialEq<HeaderValue> for &str
source§fn eq(&self, url: &HeaderValue) -> bool
fn eq(&self, url: &HeaderValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<HeaderValue> for [u8]
impl PartialEq<HeaderValue> for [u8]
source§fn eq(&self, other: &HeaderValue) -> bool
fn eq(&self, other: &HeaderValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for HeaderValue
impl PartialEq for HeaderValue
source§fn eq(&self, other: &HeaderValue) -> bool
fn eq(&self, other: &HeaderValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&'static str> for HeaderValue
impl TryFrom<&'static str> for HeaderValue
source§impl TryFrom<String> for HeaderValue
impl TryFrom<String> for HeaderValue
source§impl TryFrom<isize> for HeaderValue
impl TryFrom<isize> for HeaderValue
source§impl TryFrom<usize> for HeaderValue
impl TryFrom<usize> for HeaderValue
source§impl TryInto<String> for &HeaderValue
impl TryInto<String> for &HeaderValue
source§impl TryInto<isize> for &HeaderValue
impl TryInto<isize> for &HeaderValue
source§impl TryInto<usize> for &HeaderValue
impl TryInto<usize> for &HeaderValue
impl Eq for HeaderValue
Auto Trait Implementations§
impl RefUnwindSafe for HeaderValue
impl Send for HeaderValue
impl Sync for HeaderValue
impl Unpin for HeaderValue
impl UnwindSafe for HeaderValue
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