Crate rocket_accept_language[][src]

accept-language Request Guard for Rocket Framework

This crate provides a request guard used for getting accept-language header.

See examples.

Re-exports

pub extern crate rocket;
pub extern crate tinystr;
pub extern crate unic_langid;
pub extern crate unic_langid_macros;

Macros

language

This macro can be used to create a Language instance constantly .

language_region_pairs

This macro can be used to create a Vec<LanguageIdentifier> instance quickly by providing multiple <language>[-<region>] or <language>[_<region>] strings separated by commas.

region

This macro can be used to create a Region instance constantly .

Structs

AcceptLanguage

The request guard used for getting accept-language header.

LanguageIdentifier

LanguageIdentifier is a core struct representing a Unicode Language Identifier.