Struct tiny_http::HeaderField
[−]
[src]
pub struct HeaderField(_);
Field of a header (eg. Content-Type
, Content-Length
, etc.)
Comparaison between two HeaderField
s ignores case.
Methods
impl HeaderField
[src]
fn from_bytes<B>(bytes: B) -> Result<HeaderField, B> where
B: Into<Vec<u8>> + AsRef<[u8]>,
[src]
B: Into<Vec<u8>> + AsRef<[u8]>,
fn as_str<'a>(&'a self) -> &'a AsciiStr
[src]
fn equiv(&self, other: &'static str) -> bool
[src]
Trait Implementations
impl Debug for HeaderField
[src]
impl Clone for HeaderField
[src]
fn clone(&self) -> HeaderField
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl FromStr for HeaderField
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<HeaderField, ()>
[src]
Parses a string s
to return a value of this type. Read more
impl Display for HeaderField
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl PartialEq for HeaderField
[src]
fn eq(&self, other: &HeaderField) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.