Pipeline class

A helper that makes it easy to compose a set of Middleware and a Handler.

var handler = const Pipeline()
    .addMiddleware(loggingMiddleware)
    .addMiddleware(cachingMiddleware)
    .addHandler(application);

Constructors

Pipeline()
const

Properties

middleware Middleware
Exposes this pipeline of Middleware as a single middleware instance.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addHandler(Handler handler) Handler
Returns a new Handler with handler as the final processor of a Request if all of the middleware in the pipeline have passed the request through.
addMiddleware(Middleware middleware) Pipeline
Returns a new Pipeline with middleware added to the existing set of Middleware. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited