onRequest method
Called when the request is about to be sent.
Implementation
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
final curlModel = CurlModel(
url: options.uri,
headers: options.headers,
body: options.data,
extra: options.extra,
method: options.method,
queryParameters: options.queryParameters,
creationDate: DateTime.now(),
);
CurlLogs.instance.addItem(curlModel);
super.onRequest(options, handler);
}