TimeoutInterceptor class
Place before retries for an overall deadline, after them for attempt deadlines. Remains active until the response body is consumed or disposed.
- Implemented types
Constructors
- TimeoutInterceptor(Duration duration, {String phase = 'operation'})
Properties
Methods
-
intercept(
HttpRequest request, CancellationToken token, HttpRequestHandler next) → Future< HttpResponse> -
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