HttpHandler.any constructor
HttpHandler.any(
- String path,
- ResponseResolver resolver
factory to create a handler for any request.
Implementation
factory HttpHandler.any(String path, ResponseResolver resolver) {
return HttpHandler._(
method: _RegExpHttpMethod(
RegExp(r'^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS)$'),
),
path: path,
resolver: resolver,
);
}