Struct hyper::header::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 Mime
s, 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![])) ]));