Skip to main content

execute

Method
This is a method of the MiddlewareChain class in the middleware module.
Execute the middleware chain with a final handler.

Signature

def execute(request: Any, final_handler: Callable[[Any], Any]) -> Any

Parameters

request
Any
required
The request object to pass through
final_handler
Callable
required
The actual operation to perform

Returns

Returns
Any
The result from the chain