JsonWithContextHandler<RequestType, ResponseType> typedef
JsonWithContextHandler<RequestType, ResponseType> =
FutureOr<ResponseType> Function(RequestType request, RequestContext context)
The shape of a handler that supports a custom RequestType
and
ResponseType
and while also providing a RequestContext.
See JsonHandler for the type requirements for RequestType
and
ResponseType
.
Implementation
typedef JsonWithContextHandler<RequestType, ResponseType>
= FutureOr<ResponseType> Function(
RequestType request,
RequestContext context,
);