Struct hyper::header::common::accept::Accept
[-]
[+]
[src]
pub struct Accept(pub Vec<QualityItem<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; use hyper::mime::TopLevel::Text; use hyper::mime::SubLevel::{Html, Xml}; headers.set(Accept(vec![ qitem(Mime(Text, Html, vec![])), qitem(Mime(Text, Xml, vec![])) ]));