[−][src]Struct tiny_http::HeaderField
Field of a header (eg. Content-Type
, Content-Length
, etc.)
Comparaison between two HeaderField
s ignores case.
Methods
impl HeaderField
[src][−]
pub fn from_bytes<B>(bytes: B) -> Result<HeaderField, FromAsciiError<B>> where
B: Into<Vec<u8>> + AsRef<[u8]>,
[src]
B: Into<Vec<u8>> + AsRef<[u8]>,
pub fn as_str<'a>(&'a self) -> &'a AsciiStr
[src]
pub fn equiv(&self, other: &'static str) -> bool
[src]
Trait Implementations
impl Eq for HeaderField
[src]
impl Clone for HeaderField
[src][+]
impl PartialEq<HeaderField> for HeaderField
[src][+]
impl Display for HeaderField
[src][+]
impl Debug for HeaderField
[src][+]
impl FromStr for HeaderField
[src][+]
Auto Trait Implementations
impl Unpin for HeaderField
impl Sync for HeaderField
impl Send for HeaderField
impl UnwindSafe for HeaderField
impl RefUnwindSafe for HeaderField
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,