Cascade class
A helper that calls several handlers in sequence and returns the first acceptable response.
By default, a response is considered acceptable if it has a status other than 404 or 405; other statuses indicate that the handler understood the request.
If all handlers return unacceptable responses, the final response will be returned.
var handler = new Cascade()
.add(webSocketHandler)
.add(staticFileHandler)
.add(application)
.handler;
Constructors
Properties
Methods
-
add(
Handler handler) → Cascade -
Returns a new cascade with
handler
added to the end. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited