File tree 6 files changed +24
-0
lines changed
6 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Unreleased
2
+
3
+ * Add ` HeaderName ` constants for ` cache-status ` and ` cdn-cache-control ` .
4
+
1
5
# 0.2.8 (June 6, 2022)
2
6
3
7
* Fix internal usage of uninitialized memory to use ` MaybeUninit ` inside ` HeaderName ` .
Original file line number Diff line number Diff line change @@ -536,6 +536,8 @@ const STD: &'static [HeaderName] = &[
536
536
ALT_SVC ,
537
537
AUTHORIZATION ,
538
538
CACHE_CONTROL ,
539
+ CACHE_STATUS ,
540
+ CDN_CACHE_CONTROL ,
539
541
CONNECTION ,
540
542
CONTENT_DISPOSITION ,
541
543
CONTENT_ENCODING ,
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ pub use self::name::{
101
101
ALT_SVC ,
102
102
AUTHORIZATION ,
103
103
CACHE_CONTROL ,
104
+ CACHE_STATUS ,
105
+ CDN_CACHE_CONTROL ,
104
106
CONNECTION ,
105
107
CONTENT_DISPOSITION ,
106
108
CONTENT_ENCODING ,
Original file line number Diff line number Diff line change @@ -345,6 +345,18 @@ standard_headers! {
345
345
/// response.
346
346
( CacheControl , CACHE_CONTROL , b"cache-control" ) ;
347
347
348
+ /// Indicates how caches have handled a response and its corresponding request.
349
+ ///
350
+ /// See [RFC 9211](https://www.rfc-editor.org/rfc/rfc9211.html).
351
+ ( CacheStatus , CACHE_STATUS , b"cache-status" ) ;
352
+
353
+ /// Specifies directives that allow origin servers to control the behavior of CDN caches
354
+ /// interposed between them and clients separately from other caches that might handle the
355
+ /// response.
356
+ ///
357
+ /// See [RFC 9213](https://www.rfc-editor.org/rfc/rfc9213.html).
358
+ ( CdnCacheControl , CDN_CACHE_CONTROL , b"cdn-cache-control" ) ;
359
+
348
360
/// Controls whether or not the network connection stays open after the
349
361
/// current transaction finishes.
350
362
///
Original file line number Diff line number Diff line change @@ -346,6 +346,8 @@ const STD: &'static [HeaderName] = &[
346
346
ALT_SVC ,
347
347
AUTHORIZATION ,
348
348
CACHE_CONTROL ,
349
+ CACHE_STATUS ,
350
+ CDN_CACHE_CONTROL ,
349
351
CONNECTION ,
350
352
CONTENT_DISPOSITION ,
351
353
CONTENT_ENCODING ,
Original file line number Diff line number Diff line change @@ -282,6 +282,8 @@ fn gen_header_name(g: &mut StdRng) -> HeaderName {
282
282
header:: ALT_SVC ,
283
283
header:: AUTHORIZATION ,
284
284
header:: CACHE_CONTROL ,
285
+ header:: CACHE_STATUS ,
286
+ header:: CDN_CACHE_CONTROL ,
285
287
header:: CONNECTION ,
286
288
header:: CONTENT_DISPOSITION ,
287
289
header:: CONTENT_ENCODING ,
You can’t perform that action at this time.
0 commit comments