interceptWithAlice method

Future<Response> interceptWithAlice(
  1. Alice alice, {
  2. dynamic body,
})

Intercept http request with alice. This extension method provides additional helpful method to intercept https' response.

Implementation

Future<Response> interceptWithAlice(Alice alice, {dynamic body}) async {
  Response response = await this;
  alice.onHttpResponse(response, body: body);
  return response;
}