TelescopeHttpAdapter class abstract
Contract for HTTP capture adapters that feed TelescopeStore.
install hooks the underlying HTTP library (Dio interceptor, package:http overrides, Chopper interceptor, or Magic's Http facade). uninstall is the inverse for test isolation.
V1 ships DioHttpAdapter (vanilla Dio). Magic ships
MagicHttpFacadeAdapter inside the magic package (wraps Magic.Http via
MagicNetworkInterceptor + feeds TelescopeStore).
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Human-readable adapter name.
no setter
- pendingCount → int
-
Number of HTTP requests currently in flight on this adapter.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
install(
) → void - Wire the HTTP capture hook.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uninstall(
) → void - Tear down the hook (test isolation).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited