var handler = const Pipeline() .addMiddleware(loggingMiddleware) .addMiddleware(cachingMiddleware) .addHandler(application);
Note: this package also provides
members on Middleware, which may be easier to use.
Handler handler) → Handler
Returns a new Handler with
handleras the final processor of a Request if all of the middleware in the pipeline have passed the request through.
Middleware middleware) → Pipeline
Returns a new Pipeline with
middlewareadded to the existing set of Middleware.
Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
) → String
A string representation of this object.