Struct hyper::header::common::content_type::ContentType [-]  [+] [src]

pub struct ContentType(pub Mime);

The Content-Type header.

Used to describe the MIME type of message body. Can be used with both requests and responses.

Trait Implementations

impl Deref for ContentType

type Target = Mime

fn deref<'a>(&'a self) -> &'a Mime

impl DerefMut for ContentType

fn deref_mut<'a>(&'a mut self) -> &'a mut Mime

impl Header for ContentType

fn header_name(_: Option<ContentType>) -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<ContentType>

impl HeaderFormat for ContentType

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

Derived Implementations

impl Show for ContentType

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

impl PartialEq for ContentType

fn eq(&self, __arg_0: &ContentType) -> bool

fn ne(&self, __arg_0: &ContentType) -> bool

impl Clone for ContentType

fn clone(&self) -> ContentType

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