File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use crate::headers::HeaderValue;
4
4
5
5
use std:: cmp:: { Ordering , PartialEq } ;
6
6
7
- /// A proposed encoding .
7
+ /// A proposed `Encoding` in `AcceptEncoding` .
8
8
#[ derive( Debug , Clone , PartialEq ) ]
9
9
pub struct EncodingProposal {
10
10
/// The proposed encoding.
Original file line number Diff line number Diff line change 1
1
//! HTTP Content headers.
2
+ //!
3
+ //! These headers are used for "content negotiation": the client shares information
4
+ //! about which content it prefers, and the server responds by sharing which
5
+ //! content it's chosen to share. This enables clients to receive resources with the
6
+ //! best available compression, in the preferred language, and more.
2
7
8
+ pub mod accept_encoding;
3
9
pub mod content_encoding;
4
10
5
11
mod encoding;
6
12
mod encoding_proposal;
7
13
14
+ #[ doc( inline) ]
15
+ pub use accept_encoding:: AcceptEncoding ;
8
16
#[ doc( inline) ]
9
17
pub use content_encoding:: ContentEncoding ;
10
18
pub use encoding:: Encoding ;
You can’t perform that action at this time.
0 commit comments