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 77//! # Further Reading
88//!
99//! - [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)
1110
1211mod cache_control;
13- mod etag;
1412
1513pub use cache_control:: CacheControl ;
1614pub 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;
1919/// # fn main() -> http_types::Result<()> {
2020/// #
2121/// use http_types::Response;
22- /// use http_types::cache ::ETag;
22+ /// use http_types::conditional ::ETag;
2323///
2424/// let etag = ETag::new("0xcafebeef".to_string());
2525///
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 {
118118mod utils;
119119
120120pub mod cache;
121+ pub mod conditional;
121122pub mod headers;
122123pub mod mime;
123124
You can’t perform that action at this time.
0 commit comments