More notes on backpressure

This commit is contained in:
David Pedersen
2021-06-09 07:52:04 +02:00
parent 099e886575
commit 09f76f3c87
3 changed files with 17 additions and 15 deletions
-7
View File
@@ -29,13 +29,6 @@
//! # };
//! ```
//!
//! Technically extractors can also be used as "guards", for example to require
//! that requests are authorized. However the recommended way to do that is
//! using Tower middleware, such as [`tower_http::auth::RequireAuthorization`].
//! Extractors have to be applied to each handler, whereas middleware can be
//! applied to a whole stack at once, which is typically what you want for
//! authorization.
//!
//! # Defining custom extractors
//!
//! You can also define your own extractors by implementing [`FromRequest`]: