Add recommendation (#476)

This commit is contained in:
Kelly Thomas Kline 2021-11-07 00:54:53 -07:00 committed by GitHub
parent 513c5a694d
commit b26fd03810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
///