]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update includes for `docs/en/docs/advanced/using-request-directly.md` (#12760)
authorHamid Rasti <43915620+hamidrasti@users.noreply.github.com>
Sat, 9 Nov 2024 16:18:55 +0000 (19:48 +0330)
committerGitHub <noreply@github.com>
Sat, 9 Nov 2024 16:18:55 +0000 (16:18 +0000)
docs/en/docs/advanced/using-request-directly.md

index 917d77a95f3c3c73c579215b6360eabb4d96ef60..3e35734bc164e745c3f071d840f2b7b462c0a495 100644 (file)
@@ -29,9 +29,7 @@ Let's imagine you want to get the client's IP address/host inside of your *path
 
 For that you need to access the request directly.
 
-```Python hl_lines="1  7-8"
-{!../../docs_src/using_request_directly/tutorial001.py!}
-```
+{* ../../docs_src/using_request_directly/tutorial001.py hl[1,7:8] *}
 
 By declaring a *path operation function* parameter with the type being the `Request` **FastAPI** will know to pass the `Request` in that parameter.