📝 Update includes for `docs/en/docs/advanced/using-request-directly.md` (#12760)

This commit is contained in:
Hamid Rasti 2024-11-09 19:48:55 +03:30 committed by GitHub
parent 8a560758f8
commit 2d45b54f10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View 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. For that you need to access the request directly.
```Python hl_lines="1 7-8" {* ../../docs_src/using_request_directly/tutorial001.py hl[1,7:8] *}
{!../../docs_src/using_request_directly/tutorial001.py!}
```
By declaring a *path operation function* parameter with the type being the `Request` **FastAPI** will know to pass the `Request` in that parameter. By declaring a *path operation function* parameter with the type being the `Request` **FastAPI** will know to pass the `Request` in that parameter.