Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions headers-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ pub trait Header {
/// The name of this header.
fn name() -> &'static HeaderName;

/// Decode this type from an iterator of `HeaderValue`s.
/// Decode this type from an iterator of [`HeaderValue`]s.
fn decode<'i, I>(values: &mut I) -> Result<Self, Error>
where
Self: Sized,
I: Iterator<Item = &'i HeaderValue>;

/// Encode this type to a `HeaderMap`.
/// Encode this type to a [`HeaderValue`], and add it to a container
/// which has [`HeaderValue`] type as each element.
///
/// This function should be infallible. Any errors converting to a
/// `HeaderValue` should have been caught when parsing or constructing
Expand Down