Struct tiny_http::HeaderField [] [src]

pub struct HeaderField(_);

Field of a header (eg. Content-Type, Content-Length, etc.)

Comparaison between two HeaderFields ignores case.

Methods

impl HeaderField
[src]

fn from_bytes<B>(bytes: B) -> Result<HeaderField, B> where B: Into<Vec<u8>> + AsRef<[u8]>

fn as_str<'a>(&'a self) -> &'a AsciiStr

fn equiv(&self, other: &'static str) -> bool

Trait Implementations

impl Clone for HeaderField
[src]

fn clone(&self) -> HeaderField

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for HeaderField
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for HeaderField
[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<HeaderField()>

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>

Formats the value using the given formatter.

impl PartialEq for HeaderField
[src]

fn eq(&self, other: &HeaderField) -> bool

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

This method tests for !=.

impl Eq for HeaderField
[src]