middlewares library

Use this file to export middlewares

Functions

CorsMiddleware({List<String>? allowOrigin, List<String>? allowMethods, List<String>? allowHeaders}) MiddlewareFunc
The CORS middleware is a simple middleware that sets CORS headers for your requests
RequestLogger(Future<Response> next(Request)) Future<Response> Function(Request)
An extremely simple Middleware function that prints the incoming request URI helpful for debugging and in understanding how middleware functions are structured