mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 13:00:39 +00:00
Clarify that AddExtension
is not the actual Layer
(#3463)
This commit is contained in:
parent
e4550d23b1
commit
25acc8d131
@ -157,6 +157,9 @@ where
|
||||
/// for more details.
|
||||
///
|
||||
/// [request extensions]: https://docs.rs/http/latest/http/struct.Extensions.html
|
||||
///
|
||||
/// If you need a layer to add an extension to every request,
|
||||
/// use the [Layer](tower::Layer) implementation of [Extension].
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct AddExtension<S, T> {
|
||||
pub(crate) inner: S,
|
||||
|
Loading…
x
Reference in New Issue
Block a user