Struct hyper::header::common::accept::AcceptExperimental [-]  [+] [src]

pub struct Accept(pub Vec<Mime>);

The Accept header.

The Accept header is used to tell a server which content-types the client is capable of using. It can be a comma-separated list of Mimes, and the priority can be indicated with a q parameter.

Example:

use hyper::mime::{Mime, Text, Html, Xml};
headers.set(Accept(vec![ Mime(Text, Html, vec![]), Mime(Text, Xml, vec![]) ]));

Trait Implementations

impl Header for Accept

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

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

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

Derived Implementations

impl Show for Accept

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

impl PartialEq for Accept

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

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

impl Clone for Accept

fn clone(&self) -> Accept

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