SdkInterceptor class abstract
Hook points that can observe or mutate SDK requests and responses.
Interceptors run in the order provided to the SDK configuration. Returning
null from any hook keeps the current value unchanged.
Constructors
- SdkInterceptor.new()
-
Creates an interceptor.
const
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(
HttpRequest req, SdkError err) → Future< SdkError?> - Observes or replaces an error produced from a thrown exception path.
-
onRequest(
HttpRequest req) → Future< HttpRequest?> - Observes or replaces the outgoing request before it is sent.
-
onResponse(
HttpRequest req, HttpResponse res) → Future< HttpResponse?> - Observes or replaces the transport response after normalization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited