From ea35f382f35ee5a9286d30f29875554dc9ecee4e Mon Sep 17 00:00:00 2001 From: David Sanders Date: Sat, 13 Sep 2025 19:12:23 +1000 Subject: [PATCH] Doc'd that middleware hooks may also be used with function-based middleware --- docs/topics/http/middleware.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index 1c3b3c2a26..af5d8cd7af 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -154,7 +154,8 @@ Other middleware hooks ====================== Besides the basic request/response middleware pattern described earlier, you -can add three other special methods to class-based middleware: +can add three other special methods to class-based middleware as methods or +function-based middleware as attributes of the middleware function: .. _view-middleware: