Route.html constructor
Route.html(
- String path,
- RouteHandler handler, {
- Map<
String, String> ? pathRegEx, - int? statusCode,
- String? mimeType = MimeTypes.html,
- String? charset = kDefaultCharset,
- ResponseProcessor? responseProcessor,
- List<
RouteInterceptor> ? after, - List<
RouteInterceptor> ? before, - List<
ExceptionHandler> ? onException,
Constructs a Route for HTML requests
Implementation
factory Route.html(String path, RouteHandler handler,
{Map<String, String>? pathRegEx,
int? statusCode,
String? mimeType = MimeTypes.html,
String? charset = kDefaultCharset,
ResponseProcessor? responseProcessor,
List<RouteInterceptor>? after,
List<RouteInterceptor>? before,
List<ExceptionHandler>? onException}) =>
Route.fromInfo(
HttpMethod(
methods: ['GET'],
path: path,
pathRegEx: pathRegEx,
statusCode: statusCode,
mimeType: mimeType,
charset: charset,
responseProcessor: responseProcessor),
handler,
before: before,
after: after,
onException: onException);