MethodView
Dispatches request methods to the corresponding instance methods. For example, if you implement a get method, it will be used to handle GET requests.
Attributes
| Attribute | Type | Description |
|---|---|---|
| methods | set | :attr:methods is automatically set based on the methods defined on the class. |
Methods
dispatch_request()
@classmethod
def dispatch_request(
**kwargs: t.Any
) - > ft.ResponseReturnValue
Dispatches request methods to the corresponding instance methods. For example, if you implement a get method, it will be used to handle GET requests.
Parameters
| Name | Type | Description |
|---|---|---|
| **kwargs | t.Any | The keyword arguments captured from the URL rule, to be passed to the specific HTTP handler method. |
Returns
| Type | Description |
|---|---|
ft.ResponseReturnValue | The value returned by the specific HTTP handler method, processed to ensure it is a valid Flask response. |