onRequest method

void onRequest(
  1. HttpClientRequest request, [
  2. Object? body
])

Implementation

void onRequest(HttpClientRequest request, [Object? body]) {
  if (!DebugOverlay.enabled) return;

  httpBucket.add(HttpInteraction(
    id: request.hashCode,
    uri: request.uri,
    method: request.method,
    request: convertRequest(request, body),
  ));
}