Method
AsyncRequestHandler.ExecuteAsync
ExecuteAsync(HttpRequest, HttpContext) #
This method is called by the Router before executing a request when the Route instantiates an object that implements this interface. If it returns a HttpResponse object, the route action is not called and all execution of the route is stopped. If it returns “null”, the execution is continued.
public abstract Task<HttpResponse?> ExecuteAsync(HttpRequest request, HttpContext context)Parameters #
request HttpRequest
The entry HTTP request.
context HttpContext
The HTTP request context. It may contain information from other IRequestHandler.