ScHttpClient class

Constructors

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

Properties

forceBinCache bool
getter/setter pair
forceCache bool
getter/setter pair
getBinCache Uint8List? Function(String)
getter/setter pair
getCache String? Function(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(String, Uint8List, Duration)
getter/setter pair
setCache ↔ void Function(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 = false, bool writeCache = false, Duration? ttl}) Future<Uint8List>
getBinUri(Uri url, {bool readCache = false, bool writeCache = false, 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 nonexistent method or property is accessed.
inherited
post(String url, Object body, String id, Map<String, String> headers, {bool readCache = true, bool writeCache = true, Duration? ttl, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?}) Future<String>
postUri(Uri url, Object body, String id, Map<String, String> headers, {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