addMiddleware method
Returns a new DartnessPipeline with dartnessMiddleware
added to the existing set of
DartnessMiddleware.
Implementation
@override
DartnessPipeline addMiddleware(final DartnessMiddleware dartnessMiddleware) {
final shelfMiddleware = DartnessMiddlewareShelf(dartnessMiddleware);
final pipeline = _pipeline.addMiddleware(shelfMiddleware.middleware);
return DefaultDartnessPipeline(pipeline: pipeline);
}