Expand description
§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 unic_langid;
Macros§
- language
- This macro can be used to create a
Languageinstance 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
Regioninstance constantly .
Structs§
- Accept
Language - The request guard used for getting
accept-languageheader. - Language
Identifier LanguageIdentifieris a core struct representing a Unicode Language Identifier.