feat(headers): Add Access-Control-Allow-Credentials header
There is only one acceptable value for this header, "true", so there header struct is unit-like (no fields nor data inside). See documentation and tests for more info. Case insensitive. Closes #655
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//! is used, such as `ContentType(pub Mime)`.
|
||||
|
||||
pub use self::accept::Accept;
|
||||
pub use self::access_control_allow_credentials::AccessControlAllowCredentials;
|
||||
pub use self::access_control_allow_headers::AccessControlAllowHeaders;
|
||||
pub use self::access_control_allow_methods::AccessControlAllowMethods;
|
||||
pub use self::access_control_allow_origin::AccessControlAllowOrigin;
|
||||
@@ -353,6 +354,7 @@ macro_rules! header {
|
||||
|
||||
|
||||
mod accept;
|
||||
mod access_control_allow_credentials;
|
||||
mod access_control_allow_headers;
|
||||
mod access_control_allow_methods;
|
||||
mod access_control_allow_origin;
|
||||
|
||||
Reference in New Issue
Block a user