onRequest method

void onRequest(
  1. dynamic options,
  2. dynamic handler
)

Call this from Dio's onRequest interceptor handler.

Implementation

void onRequest(dynamic options, dynamic handler) {
  final key = identityHashCode(options);
  _pendingTrackIds[key] = tracker.startApiTracking(
    url: options.uri.toString(),
    method: options.method,
  );
  handler.next(options);
}