mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Make IntoResponseHeaders members hidden
This commit is contained in:
@@ -152,9 +152,11 @@ pub trait IntoResponseHeaders {
|
|||||||
///
|
///
|
||||||
/// The header name is optional because [`HeaderMap`]s iterator doesn't yield it multiple times
|
/// 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.
|
/// for headers that have multiple values, to avoid unnecessary copies.
|
||||||
|
#[doc(hidden)]
|
||||||
type IntoIter: IntoIterator<Item = Result<(Option<HeaderName>, HeaderValue), Response>>;
|
type IntoIter: IntoIterator<Item = Result<(Option<HeaderName>, HeaderValue), Response>>;
|
||||||
|
|
||||||
/// Attempt to turn `self` into a list of headers.
|
/// Attempt to turn `self` into a list of headers.
|
||||||
|
#[doc(hidden)]
|
||||||
fn into_headers(self) -> Self::IntoIter;
|
fn into_headers(self) -> Self::IntoIter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user