DefaultDartnessPipeline class
Default implementation of DartnessPipeline that uses shelf Pipeline
in order to provide an efficient way of create DartnessMiddleware
and DartnessInterceptor.
- Implemented types
Constructors
- DefaultDartnessPipeline({Pipeline pipeline = const Pipeline(), DartnessCatchErrorRegister? errorHandlerRegister})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addErrorHandler(
DartnessErrorHandler errorHandler) → DartnessPipeline -
Returns a new DartnessPipeline with
errorHandler
added to the existing set of handlers.override -
addHandler(
Handler handler) → Handler -
Returns a new
Handler
withhandler
override -
addInterceptor(
DartnessInterceptor interceptor) → DartnessPipeline -
Returns a new DartnessPipeline with
dartnessInterceptor
added to the existing set of DartnessInterceptor.override -
addMiddleware(
DartnessMiddleware dartnessMiddleware) → DartnessPipeline -
Returns a new DartnessPipeline with
dartnessMiddleware
added to the existing set of DartnessMiddleware.override -
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