mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Split first sentence into its own paragraph in TypedHeader docs (#485)
This commit is contained in:
@@ -6,9 +6,10 @@ use headers::HeaderMapExt;
|
|||||||
use http_body::Full;
|
use http_body::Full;
|
||||||
use std::{convert::Infallible, ops::Deref};
|
use std::{convert::Infallible, ops::Deref};
|
||||||
|
|
||||||
/// Extractor that extracts a typed header value from [`headers`]. In general, it's
|
/// Extractor that extracts a typed header value from [`headers`].
|
||||||
/// recommended to extract only the needed headers via `TypedHeader` rather than removing all
|
///
|
||||||
/// headers with the `HeaderMap` extractor.
|
/// In general, it's recommended to extract only the needed headers via `TypedHeader` rather than
|
||||||
|
/// removing all headers with the `HeaderMap` extractor.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user