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

duration → Duration
final
hashCode → int
The hash code for this object.
no setterinherited
phase → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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