Struct hyper::header::common::content_type::ContentTypeExperimental [-]  [+] [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 Header for ContentType

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

fn parse_header(raw: &[Vec<u8>]) -> Option<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)