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 the incoming request to the instance method matching the HTTP verb (e.g., GET, POST). If a HEAD request is received but no 'head' method is defined, it falls back to the 'get' method.
Parameters
| Name | Type | Description |
|---|---|---|
| **kwargs | t.Any | Variable keyword arguments extracted from the URL rule to be passed to the handler method. |
Returns
| Type | Description |
|---|---|
ft.ResponseReturnValue | The response object or value returned by the specific HTTP method handler. |