addHttpCall method
Logs an HTTP call which includes both the request and the response.
httpCall
: The network call (including request and response) to be logged.
Implementation
void addHttpCall(InfospectNetworkCall httpCall) {
assert(httpCall.request != null, "Http call request can't be null");
assert(httpCall.response != null, "Http call response can't be null");
_infospect.networkCallsSubject
.add([..._infospect.networkCallsSubject.value, httpCall]);
_infospect.sendNetworkCalls();
}