api library

Classes

AllOfRouteMatcher
AnyOfRouteMatcher
AnyRouteMatcher
ApiEndpoint
ApiEndpointDelegate
ApiMiddleware
ApiMiddlewareDelegate
ApiNode
Building-block for defining the structure of APIs using ApiService.
ApiRequest
ApiRequestExceptionResponse
ApiResponse
Defines a response to a api request.
ApiRoute
ApiService
A Service that serves HTTP-Requests.
ByteStreamResponse
DebugResponse
EmptyResponse
FileResponse
HeaderRouteMatcher
HeadResponse
JsonResponse
MethodRouteMatcher
RawResponse
ResourceEndpoint
RouteMatcher
RoutePattern
Represents a route pattern against which request paths will be matched.
RoutePatternMatch
Represents a path which has been matched with a RoutePattern.
TextResponse

Typedefs

MiddlewareRequestHandler<T> = FutureOr<T> Function(ApiRequest request, RequestHandler<ApiResponse> handler)
RequestHandler<T> = FutureOr<T> Function(ApiRequest request)

Exceptions / Errors

ApiRequestException
An exception that can explicitly be transformed into an ApiResponse using toResponse.