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.
applyRequestBreakpointEdit({required int requestId, required InfospectBreakpointEdit edit}) → void
Applies a request breakpoint edit: keeps original + edited, updates live request.
applyResponseBreakpointEdit({required int requestId, required InfospectBreakpointEdit edit}) → void
Records a response breakpoint original/edited pair on the logged call.
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.
markBreakpointTrace({required int requestId, bool requestHit = false, bool responseHit = false, bool requestEdited = false, bool responseEdited = false}) → void
Marks breakpoint interaction flags on a logged call.
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