Skip to content

Commit b243e55

Browse files
committed
Update Accept-Encoding docs
1 parent 3514e1f commit b243e55

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/content/encoding_proposal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::headers::HeaderValue;
44

55
use std::cmp::{Ordering, PartialEq};
66

7-
/// A proposed encoding.
7+
/// A proposed `Encoding` in `AcceptEncoding`.
88
#[derive(Debug, Clone, PartialEq)]
99
pub struct EncodingProposal {
1010
/// The proposed encoding.

src/content/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
//! 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.
27
8+
pub mod accept_encoding;
39
pub mod content_encoding;
410

511
mod encoding;
612
mod encoding_proposal;
713

14+
#[doc(inline)]
15+
pub use accept_encoding::AcceptEncoding;
816
#[doc(inline)]
917
pub use content_encoding::ContentEncoding;
1018
pub use encoding::Encoding;

0 commit comments

Comments
 (0)