mirror of
https://github.com/tokio-rs/axum.git
synced 2025-02-16 18:31:51 +01:00
Clarity Err
usage in IntoResponseHeaders
This commit is contained in:
parent
4f6e86f026
commit
208720be53
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ pub trait IntoResponseHeaders {
|
||||||
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.
|
||||||
|
///
|
||||||
|
/// In practice, only the implementation for `axum::response::Headers` ever returns `Err(_)`.
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
fn into_headers(self) -> Self::IntoIter;
|
fn into_headers(self) -> Self::IntoIter;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue