HttpInterceptor class

Base class representing an interceptor that can be registered with a HttpClient instance to intercept HTTP requests and responses in order to modify or augment them prior to dispatch and delivery, respectively.

Constructors

HttpInterceptor()

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

interceptRequest(RequestPayload payload) Future<RequestPayload>
interceptResponse(ResponsePayload payload) Future<ResponsePayload>
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