interceptWithAlice method

Future<Response> interceptWithAlice(
  1. AliceHttpAdapter adapter, {
  2. dynamic body,
})

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

Implementation

Future<Response> interceptWithAlice(
  AliceHttpAdapter adapter, {
  dynamic body,
}) async {
  final response = await this;
  adapter.onResponse(response, body: body);
  return response;
}