patch method
Route
patch(
- String path,
- RouteHandler handler, {
- Map<
String, String> ? pathRegEx, - int statusCode = 200,
- String? mimeType,
- String? charset = kDefaultCharset,
- ResponseProcessor? responseProcessor,
- List<
RouteInterceptor> ? after, - List<
RouteInterceptor> ? before, - List<
ExceptionHandler> ? onException,
Adds a route with PATCH method to be served
Implementation
Route patch(String path, RouteHandler handler,
{Map<String, String>? pathRegEx,
int statusCode = 200,
String? mimeType,
String? charset = kDefaultCharset,
ResponseProcessor? responseProcessor,
List<RouteInterceptor>? after,
List<RouteInterceptor>? before,
List<ExceptionHandler>? onException}) {
final route = Route.patch(path, handler,
pathRegEx: pathRegEx,
statusCode: statusCode,
mimeType: mimeType,
charset: charset,
responseProcessor: responseProcessor,
before: before,
after: after,
onException: onException);
return addRoute(route);
}