ClientInterceptor class abstract

Base class for interceptors that can modify requests and responses.

Implementers

Constructors

ClientInterceptor()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(ClientRequest request, Object error, int attemptCount) Future<bool>
Called when an error occurs. Return true to retry the request, false to propagate the error.
onRequest(ClientRequest request) Future<ClientRequest?>
Called before the request is sent. Return the modified request, or null to cancel the request.
onResponse(ClientRequest request, ClientResponse response) Future<ClientResponse>
Called after the response is received. Return the modified response.
toString() String
A string representation of this object.
inherited

Operators

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