addHttpCall method

void addHttpCall(
  1. AliceHttpCall aliceHttpCall
)

Get chopper interceptor. This should be added to Chopper instance. Handle generic http call. Can be used to any http client.

Implementation

// ResponseInterceptor getChopperInterceptor() {
//   return AliceChopperInterceptor(_aliceCore);
// }

/// Handle generic http call. Can be used to any http client.
void addHttpCall(AliceHttpCall aliceHttpCall) {
  assert(aliceHttpCall.request != null, "Http call request can't be null");
  assert(aliceHttpCall.response != null, "Http call response can't be null");
  _aliceCore.addCall(aliceHttpCall);
}