ScHttpClient class Null safety

Constructors

ScHttpClient({String? getCache(Uri) = _getCacheDmy, void setCache(Uri, String, Duration?) = _setCacheDmy, String? getPostCache(Uri, Object) = _getPostCacheDmy, void setPostCache(Uri, Object, String, Duration?) = _setPostCacheDmy, Uint8List? getBinCache(Uri) = _getBinCacheDmy, void setBinCache(Uri, Uint8List, Duration?) = _setCacheDmy, bool forceCache = false, bool forceBinCache = false, String? userAgent, String findProxy(Uri)?})

Properties

forceBinCache bool
read / write
forceCache bool
read / write
getBinCache Uint8List? Function(Uri)
read / write
getCache String? Function(Uri)
read / write
getPostCache String? Function(Uri, Object)
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
setBinCache ↔ void Function(Uri, Uint8List, Duration?)
read / write
setCache ↔ void Function(Uri, String, Duration?)
read / write
setPostCache ↔ void Function(Uri, Object, String, Duration?)
read / write

Methods

get(String url, {bool readCache = true, bool writeCache = true, Duration? ttl, Map<String, String> headers = const {}, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
getBin(String url, {bool readCache = true, bool writeCache = true, Duration? ttl}) Future<Uint8List>
getBinUri(Uri url, {bool readCache = true, bool writeCache = true, Duration? ttl}) Future<Uint8List>
getUri(Uri url, {bool readCache = true, bool writeCache = true, Duration? ttl, Map<String, String> headers = const {}, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
post(String url, Object body, {Map<String, String> headers = const {}, bool readCache = true, bool writeCache = true, Duration? ttl, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
postUri(Uri url, Object body, {Map<String, String> headers = const {}, bool readCache = true, bool writeCache = true, Duration? ttl, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
toString() String
A string representation of this object. [...]
inherited

Operators

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