RestOfflineQueueClient constructor
RestOfflineQueueClient(})
Implementation
RestOfflineQueueClient(
this._inner,
this.requestManager, {
this.onReattempt,
this.onRequestException,
List<int>? reattemptForStatusCodes,
/// Any request URI that begins with one of these paths will not be
/// handled by the offline queue and will be forwarded to [_inner].
///
/// For example, if an ignore path is `/v1/ignored-path`, a request
/// to `http://0.0.0.0:3000/v1/ignored-path/endpoint` will not be
/// cached and retried on failure.
Set<String>? ignorePaths,
}) : _logger = Logger('OfflineQueueHttpClient#${requestManager.databaseName}'),
reattemptForStatusCodes = reattemptForStatusCodes ?? [404, 501, 502, 503, 504],
_ignorePattern = ignorePaths == null ? null : RegExp(ignorePaths.join('|'));