mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-23 07:39:25 +01:00
Add recommendation (#476)
This commit is contained in:
parent
513c5a694d
commit
b26fd03810
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ use headers::HeaderMapExt;
|
|||
use http_body::Full;
|
||||
use std::{convert::Infallible, ops::Deref};
|
||||
|
||||
/// Extractor that extracts a typed header value from [`headers`].
|
||||
/// Extractor that extracts a typed header value from [`headers`]. In general, it's
|
||||
/// recommended to extract only the needed headers via `TypedHeader` rather than removing all
|
||||
/// headers with the `HeaderMap` extractor.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue