middleware_dart

Last updated:

0 purchases

middleware_dart Image
middleware_dart Images
Add to Cart

Description:

middleware dart

Middleware_Dart - Library for middleware, inspired by middleware-io

Features #

Self-sufficient. The library has no dependencies
Reliable. The library is covered with tests
Strong. Supports the following additional features:

The library has enough built-in snippets;
Middleware chain designer;



Example Usage #
import 'package:middleware_dart/middleware_dart.dart';

void main() async {
final composedMiddleware = compose([
(context, next) async {
print('step 1');
await next();
print('step 4');
},
(context, next) async {
print('step 2');
await next();
print('step 3');
}
]);

await composedMiddleware([], () {
print('Middleware finished work');
});
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.