Skip to main content

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​

AttributeTypeDescription
methodsset: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​

NameTypeDescription
**kwargst.AnyThe keyword arguments captured from the URL rule, to be passed to the specific HTTP handler method.

Returns​

TypeDescription
ft.ResponseReturnValueThe value returned by the specific HTTP handler method, processed to ensure it is a valid Flask response.