Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/en/docs/advanced/using-request-directly.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down