middleware library

Classes

Cors
LogRequests

Properties

loggerContextKey String
final

Functions

CorsMiddleware(Cors config) RequestMiddleware
enforceJsonContentType(Request req) Request
handleActualRequest(Request req, Cors cors) Request
handlePreFlight(Request req, Cors cors) Request
loggerIn() RequestMiddleware
loggerOut({Logger logger: null, bool messages: false}) ResponseMiddleware
readJsonContent(Request req) Future<Request>
withValue<T>({String key, T value}) RequestMiddleware

Typedefs

Logger(String msg) → void
A function type that takes a String message and handles logging the message.
Recoverer(Request req, {Exception exception, StackTrace stacktrace, Error error}) FutureOr<Response>