ServerRouteHandler<P, S> typedef

ServerRouteHandler<P, S> = FutureOr<ServerResponse> Function(ServerRouteContext<P, S> context)

Handles one HTTP method on a matched route.

Implementation

typedef ServerRouteHandler<P, S> =
    FutureOr<ServerResponse> Function(ServerRouteContext<P, S> context);