InfospectNetworkCallHelper class

InfospectNetworkCallHelper is a utility class tailored to assist Infospect in handling network-related tasks. It provides methods to log network calls, errors, responses and facilitates integration with interceptors for networking libraries like Dio and HttpClient.

Properties

dioInterceptor InfospectDioInterceptor
Provides an interceptor for Dio, which helps in logging network tasks when using the Dio library.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCall(InfospectNetworkCall call) → void
Logs a new network call.
addError(InfospectNetworkError error, int requestId) → void
Logs an error associated with a specific network request.
addHttpCall(InfospectNetworkCall httpCall) → void
Logs an HTTP call which includes both the request and the response.
addResponse(InfospectNetworkResponse response, int requestId) → void
Logs a response associated with a specific network request.
clearAllNetworkCalls() → void
Clears all logged network calls.
httpClientInterceptor({required Client client}) InfospectHttpClientInterceptor
Provides an interceptor for HttpClient, which assists in logging network activities when using HttpClient.
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