@@ -109,7 +109,7 @@ fn format_cache_control(cc: &CacheControl) -> String {
109
109
110
110
/// Configuration options which control behavior of the cache. Use with `CachePolicy::new_options()`.
111
111
#[ derive( Debug , Copy , Clone ) ]
112
- #[ cfg_attr( feature = "with_serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
112
+ #[ cfg_attr( feature = "serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
113
113
pub struct CacheOptions {
114
114
/// If `true` (default), then the response is evaluated from a
115
115
/// perspective of a shared cache (i.e. `private` is not cacheable and
@@ -152,17 +152,17 @@ impl Default for CacheOptions {
152
152
/// tricky details such as the Vary header, proxy revalidation, and
153
153
/// authenticated responses.
154
154
#[ derive( Debug , Clone ) ]
155
- #[ cfg_attr( feature = "with_serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
155
+ #[ cfg_attr( feature = "serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
156
156
pub struct CachePolicy {
157
- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::header_map" ) ) ]
157
+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::header_map" ) ) ]
158
158
req : HeaderMap ,
159
- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::header_map" ) ) ]
159
+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::header_map" ) ) ]
160
160
res : HeaderMap ,
161
- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::uri" ) ) ]
161
+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::uri" ) ) ]
162
162
uri : Uri ,
163
- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::status_code" ) ) ]
163
+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::status_code" ) ) ]
164
164
status : StatusCode ,
165
- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::method" ) ) ]
165
+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::method" ) ) ]
166
166
method : Method ,
167
167
opts : CacheOptions ,
168
168
res_cc : CacheControl ,
0 commit comments