onRequest method
Called before a request is sent.
Modify the request (e.g., add headers, log) and return it.
Throw EventFluxException to short-circuit — the request won't
be sent and the error chain will run instead.
Implementation
Future<BaseRequest> onRequest(BaseRequest request) async => request;