onRequest method

void onRequest(
  1. RequestOptions options
)

Fires as a request leaves, after auth headers have been attached.

Fires again for each automatic retry, so read it as "an attempt started" rather than "the caller made a call" — unlike onResponse and onFailure, which fire exactly once per call.

Implementation

void onRequest(RequestOptions options) {}