FittorInterceptorChain class

Manages a chain of interceptors

This class is used internally by FittorClient to manage the list of interceptors and their execution order.

Properties

hashCode int
The hash code for this object.
no setterinherited
interceptors List<FittorInterceptor>
Returns an unmodifiable list of all interceptors
no setter
isEmpty bool
Returns true if the chain is empty
no setter
isNotEmpty bool
Returns true if the chain has interceptors
no setter
length int
Returns the number of interceptors in the chain
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(FittorInterceptor interceptor) → void
Adds an interceptor to the end of the chain
clear() → void
Removes all interceptors from the chain
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processError(dynamic error, StackTrace stackTrace) Future
Executes all error interceptors in order
processRequest(FittorRequest request) Future<FittorRequest>
Executes all request interceptors in order
processResponse(FittorResponse response) Future<FittorResponse>
Executes all response interceptors in reverse order
remove(FittorInterceptor interceptor) → void
Removes an interceptor from the chain
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited