ScHttpClient class

Implementers

Constructors

ScHttpClient({String? getCache(Uri, Map<String, String>) = _getCacheDmy, void setCache(Uri, Map<String, String>, String, Duration?) = _setCacheDmy, String? getPostCache(Uri, Object, Map<String, String>) = _getPostCacheDmy, void setPostCache(Uri, Object, Map<String, String>, String, Duration?) = _setPostCacheDmy, Uint8List? getBinCache(Uri, Map<String, String>) = _getBinCacheDmy, void setBinCache(Uri, Map<String, String>, Uint8List, Duration?) = _setCacheDmy, String? userAgent, String findProxy(Uri)?})

Properties

getBinCache Uint8List? Function(Uri, Map<String, String>)
getter/setter pair
getCache String? Function(Uri, Map<String, String>)
getter/setter pair
getPostCache String? Function(Uri, Object, Map<String, String>)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setBinCache ↔ void Function(Uri, Map<String, String>, Uint8List, Duration?)
getter/setter pair
setCache ↔ void Function(Uri, Map<String, String>, String, Duration?)
getter/setter pair
setPostCache ↔ void Function(Uri, Object, Map<String, String>, String, Duration?)
getter/setter pair

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, Map<String, String> headers = const {}}) Future<Uint8List>
getBinUri(Uri url, {bool readCache = true, bool writeCache = true, Duration? ttl, Map<String, String> headers = const {}}) 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 nonexistent 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