HttpOptions class
Опции Http-клиента.
Constructors
- HttpOptions({Duration timeout = const Duration(milliseconds: 15000), bool useCache = true, String? cacheStoragePath = null, int? cacheMaxSize = null})
- 
          
            const
Properties
- cacheMaxSize → int?
- 
  Максимальный размер HTTP-кеша в байтах.
Если не указан, по умолчанию максимальный размер HTTP кэша составляет 300 Мб.
  final
- cacheStoragePath → String?
- 
  Путь к каталогу верхнего уровня для основного файлового хранилища HTTP кэша.
Файловое хранилище будет находиться в подкаталоге http_cache в данном каталоге.
Если путь не указан, будет использоваться директория по умолчанию.
  final
- hashCode → int
- 
  The hash code for this object.
  no setteroverride
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- timeout → Duration
- 
  Таймаут для HTTP-запросов.
  final
- useCache → bool
- 
  Использовать HTTP кэш.
  final
Methods
- 
  copyWith({Duration? timeout, bool? useCache, Optional< String?> ? cacheStoragePath, Optional<int?> ? cacheMaxSize}) → HttpOptions
- 
  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.
  override