FFApiInterceptor class

Dio interceptor that captures every request/response/error into FFApiStore.

All captured data is passed through the configured FFSensitiveDataMasker before storage, so the in-app devtools never see raw tokens/cookies.

Constructors

FFApiInterceptor({required FFApiStore store, required FFSensitiveDataMasker masker, FFCurlExporter? curlExporter})
Creates an interceptor.

Properties

hashCode int
The hash code for this object.
no setterinherited
masker FFSensitiveDataMasker
Data masker applied to headers, bodies, URLs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
store FFApiStore
Destination store for captured calls.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(DioException err, ErrorInterceptorHandler handler) → void
Called when an exception was occurred during the request.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
Called when the request is about to be sent.
onResponse(Response response, ResponseInterceptorHandler handler) → void
Called when the response is about to be resolved.
toString() String
A string representation of this object.
inherited

Operators

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