Struct http_stub::header::ContentLanguage [] [src]

pub struct ContentLanguage(pub Vec<QualityItem<LanguageTag>>);

Content-Language header, defined in RFC7231

The Content-Language header field describes the natural language(s) of the intended audience for the representation. Note that this might not be equivalent to all the languages used within the representation.

ABNF

Content-Language = 1#language-tag

Example values

Examples

let mut headers = Headers::new();
headers.set(
    ContentLanguage(vec![
        qitem(langtag!(en)),
    ])
);
 
let mut headers = Headers::new();
headers.set(
    ContentLanguage(vec![
        qitem(langtag!(da)),
        qitem(langtag!(en;;;GB)),
    ])
);