File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 7
7
//! # Further Reading
8
8
//!
9
9
//! - [MDN: HTTP Caching](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching)
10
- //! - [MDN: HTTP Conditional Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Conditional_requests)
11
10
12
11
mod cache_control;
13
- mod etag;
14
12
15
13
pub use cache_control:: CacheControl ;
16
14
pub use cache_control:: CacheDirective ;
17
- pub use etag:: ETag ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use std::option;
19
19
/// # fn main() -> http_types::Result<()> {
20
20
/// #
21
21
/// use http_types::Response;
22
- /// use http_types::cache ::ETag;
22
+ /// use http_types::conditional ::ETag;
23
23
///
24
24
/// let etag = ETag::new("0xcafebeef".to_string());
25
25
///
Original file line number Diff line number Diff line change
1
+ //! HTTP conditional headers.
2
+ //!
3
+ //! Web page performance can be significantly improved by caching resources.
4
+ //! This submodule includes headers and types to communicate how and when to
5
+ //! cache resources.
6
+ //!
7
+ //! # Further Reading
8
+ //!
9
+ //! - [MDN: HTTP Conditional Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Conditional_requests)
10
+
11
+ mod etag;
12
+
13
+ pub use etag:: ETag ;
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ pub mod url {
118
118
mod utils;
119
119
120
120
pub mod cache;
121
+ pub mod conditional;
121
122
pub mod headers;
122
123
pub mod mime;
123
124
You can’t perform that action at this time.
0 commit comments