diff --git a/axum/src/extension.rs b/axum/src/extension.rs index da3b7b0d..75c8b456 100644 --- a/axum/src/extension.rs +++ b/axum/src/extension.rs @@ -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 { pub(crate) inner: S,