RouteHandler typedef
RouteHandler =
Future<Response> Function(Uri url, {Object? body, required Future<Response> delete(Uri url, {Object? body, Map<String, String> ? headers}), required Future<Response> get(Uri url, {Map<String, String> ? headers}), Map<String, String> ? headers, required Future<Response> patch(Uri url, {Object? body, Map<String, String> ? headers}), required Future<Response> post(Uri url, {Object? body, Map<String, String> ? headers}), required Future<Response> put(Uri url, {Object? body, Map<String, String> ? headers})})
Implementation
typedef RouteHandler = Future<Response> Function(
Uri url, {
Map<String, String>? headers,
Object? body,
required Future<Response> Function(
Uri url, {
Map<String, String>? headers,
Object? body,
}) post,
required Future<Response> Function(
Uri url, {
Map<String, String>? headers,
}) get,
required Future<Response> Function(
Uri url, {
Map<String, String>? headers,
Object? body,
}) put,
required Future<Response> Function(
Uri url, {
Map<String, String>? headers,
Object? body,
}) patch,
required Future<Response> Function(
Uri url, {
Map<String, String>? headers,
Object? body,
}) delete,
});