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