HttpClientConfig class

Configuration class for HTTP client settings

Constructors

HttpClientConfig.new({Duration connectTimeout = const Duration(seconds: 30), Duration receiveTimeout = const Duration(seconds: 30), Duration sendTimeout = const Duration(seconds: 30), int maxRetries = 3, Duration retryDelay = const Duration(seconds: 1), bool enableLogging = kDebugMode, bool enableCaching = true, bool enableOfflineMode = true, CacheConfig? cacheConfig, List<int> retryStatusCodes = const [502, 503, 504, 408, 429], bool enableRateLimiting = true, RateLimitConfig rateLimitConfig = RateLimitConfig.traccarDefault, bool enableBatching = false, BatchConfig batchConfig = BatchConfig.traccarDefault})
const

Properties

batchConfig BatchConfig
Batching configuration
final
cacheConfig CacheConfig?
final
connectTimeout Duration
final
enableBatching bool
Enable request batching
final
enableCaching bool
final
enableLogging bool
final
enableOfflineMode bool
final
enableRateLimiting bool
Enable rate limiting
final
hashCode int
The hash code for this object.
no setterinherited
maxRetries int
final
rateLimitConfig RateLimitConfig
Rate limiting configuration
final
receiveTimeout Duration
final
retryDelay Duration
final
retryStatusCodes List<int>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout Duration
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited