Request Object (Starlette)¶
Introduction¶
In Starlette, the request
object represents the HTTP request that arrives at an endpoint. It contains information such as the request methods (GET, POST, etc.), headers, path parameters, query string, request body, and more. It is essential for accessing and manipulating the incoming request data in your application.
The Request
object from Starlette is not lost and can still be accessed from the controller.
Usage¶
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
If the action is a websocket, you should use:
Python | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|