feat(headers): add AcceptLanguage header

Adds header support for Accept-Language, using a struct for the primary
and sub components of the language.
This commit is contained in:
Hugo Duncan
2015-02-07 12:48:26 -05:00
parent 361e4511e1
commit 20a585e30b
2 changed files with 88 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
pub use self::access_control::*;
pub use self::accept::Accept;
pub use self::accept_encoding::AcceptEncoding;
pub use self::accept_language::AcceptLanguage;
pub use self::allow::Allow;
pub use self::authorization::{Authorization, Scheme, Basic};
pub use self::cache_control::{CacheControl, CacheDirective};
@@ -147,6 +148,7 @@ macro_rules! impl_header(
mod access_control;
mod accept;
mod accept_encoding;
mod accept_language;
mod allow;
mod authorization;
mod cache_control;