mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-23 16:21:06 +01:00
feat: add CLEAR_SITE_DATA header
This commit is contained in:
parent
4c05c87b11
commit
ec05381f6f
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Add `header::CLEAR_SITE_DATA` constant.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
- Update `brotli` dependency to `7`.
|
- Update `brotli` dependency to `7`.
|
||||||
- Minimum supported Rust version (MSRV) is now 1.75.
|
- Minimum supported Rust version (MSRV) is now 1.75.
|
||||||
|
|
||||||
|
@ -18,6 +18,14 @@ pub const CACHE_STATUS: HeaderName = HeaderName::from_static("cache-status");
|
|||||||
// TODO(breaking): replace with http's version
|
// TODO(breaking): replace with http's version
|
||||||
pub const CDN_CACHE_CONTROL: HeaderName = HeaderName::from_static("cdn-cache-control");
|
pub const CDN_CACHE_CONTROL: HeaderName = HeaderName::from_static("cdn-cache-control");
|
||||||
|
|
||||||
|
/// Response header field that sends a signal to the user agent that it ought to remove all data of
|
||||||
|
/// a certain set of types.
|
||||||
|
///
|
||||||
|
/// See the [W3C Clear-Site-Data spec] for full semantics.
|
||||||
|
///
|
||||||
|
/// [W3C Clear-Site-Data spec]: https://www.w3.org/TR/clear-site-data/#header
|
||||||
|
pub const CLEAR_SITE_DATA: HeaderName = HeaderName::from_static("clear-site-data");
|
||||||
|
|
||||||
/// Response header that prevents a document from loading any cross-origin resources that don't
|
/// Response header that prevents a document from loading any cross-origin resources that don't
|
||||||
/// explicitly grant the document permission (using [CORP] or [CORS]).
|
/// explicitly grant the document permission (using [CORP] or [CORS]).
|
||||||
///
|
///
|
||||||
|
@ -42,9 +42,9 @@ pub use self::{
|
|||||||
as_name::AsHeaderName,
|
as_name::AsHeaderName,
|
||||||
// re-export list is explicit so that any updates to `http` do not conflict with this set
|
// re-export list is explicit so that any updates to `http` do not conflict with this set
|
||||||
common::{
|
common::{
|
||||||
CACHE_STATUS, CDN_CACHE_CONTROL, CROSS_ORIGIN_EMBEDDER_POLICY, CROSS_ORIGIN_OPENER_POLICY,
|
CACHE_STATUS, CDN_CACHE_CONTROL, CLEAR_SITE_DATA, CROSS_ORIGIN_EMBEDDER_POLICY,
|
||||||
CROSS_ORIGIN_RESOURCE_POLICY, PERMISSIONS_POLICY, X_FORWARDED_FOR, X_FORWARDED_HOST,
|
CROSS_ORIGIN_OPENER_POLICY, CROSS_ORIGIN_RESOURCE_POLICY, PERMISSIONS_POLICY,
|
||||||
X_FORWARDED_PROTO,
|
X_FORWARDED_FOR, X_FORWARDED_HOST, X_FORWARDED_PROTO,
|
||||||
},
|
},
|
||||||
into_pair::TryIntoHeaderPair,
|
into_pair::TryIntoHeaderPair,
|
||||||
into_value::TryIntoHeaderValue,
|
into_value::TryIntoHeaderValue,
|
||||||
|
Loading…
Reference in New Issue
Block a user