onRequest method
- RequestOptions options,
- RequestInterceptorHandler handler
override
Called when the request is about to be sent.
Implementation
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
options.headers['X-Client'] =
'f39e5855ffb05dd0030e6cdd6b7b27f45303aa96dd5439f5021171b714afd755';
handler.next(options);
}