onRequest method

Future<HttpRequest?> onRequest(
  1. HttpRequest req
)

Observes or replaces the outgoing request before it is sent.

This runs after auth headers have been attached.

Implementation

Future<HttpRequest?> onRequest(HttpRequest req) async => null;