From ce1457cb22afbefbba633762bcf7050f849adfc8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 11 Oct 2025 12:58:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/docs/tutorial/middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/docs/tutorial/middleware.md b/docs/en/docs/tutorial/middleware.md index a1dcf981e..bbce653b7 100644 --- a/docs/en/docs/tutorial/middleware.md +++ b/docs/en/docs/tutorial/middleware.md @@ -73,7 +73,7 @@ For example, you could create a new file called `middleware.py` with the followi {* ../../docs_src/middleware/tutorial002/middleware.py hl[4,7:9,12,14] *} -Here, we define a class `ProcessTimeHeaderMiddleware` that inherits from `BaseHTTPMiddleware`. +Here, we define a class `ProcessTimeHeaderMiddleware` that inherits from `BaseHTTPMiddleware`. This middleware measures how long each request takes to be processed and adds a custom header to the response. Then, in your main application file, you can import and use the middleware as follows: