interceptRequest method

  1. @override
Future<RequestData> interceptRequest({
  1. required RequestData data,
})
override

Implementation

@override
Future<RequestData> interceptRequest({required RequestData data}) async {
  logFunction('Request: ${data.method} ${data.url}');
  logFunction('Headers: ${data.headers}');
  if (data.body != null) {
    logFunction('Body: ${data.body}');
  }
  return data;
}