hyper-cors 0.2.0

CORS middleware for hyper 1.x
Documentation
1
2
3
4
5
6
7
8
9
//! Pre-encoded header constants.

use http::HeaderValue;

/// Pre-encoded `*`.
pub(crate) const WILDCARD: HeaderValue = HeaderValue::from_static("*");

/// Pre-encoded `true` for `Access-Control-Allow-Credentials`.
pub(crate) const ALLOW_CREDENTIALS_TRUE: HeaderValue = HeaderValue::from_static("true");