onRequest abstract method

Future<void> onRequest(
  1. Uri url,
  2. HttpMethod method,
  3. Map<String, String> headers,
  4. dynamic body,
)

Called before a request is sent

Implementation

Future<void> onRequest(
  Uri url,
  HttpMethod method,
  Map<String, String> headers,
  dynamic body,
);