Make IntoResponseHeaders members hidden

This commit is contained in:
David Pedersen 2022-01-23 20:20:28 +01:00
parent 2546be04f6
commit e7051322d3

View file

@ -152,9 +152,11 @@ pub trait IntoResponseHeaders {
///
/// The header name is optional because [`HeaderMap`]s iterator doesn't yield it multiple times
/// for headers that have multiple values, to avoid unnecessary copies.
#[doc(hidden)]
type IntoIter: IntoIterator<Item = Result<(Option<HeaderName>, HeaderValue), Response>>;
/// Attempt to turn `self` into a list of headers.
#[doc(hidden)]
fn into_headers(self) -> Self::IntoIter;
}