Add recommendation (#476)

This commit is contained in:
Kelly Thomas Kline
2021-11-07 07:54:53 +00:00
committed by GitHub
parent 513c5a694d
commit b26fd03810
+3 -1
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
///