ScHttpClient class
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)?})
-
Methods
-
get(String url, {bool readCache = true, bool writeCache = true, Duration? ttl, 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, 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, {bool readCache = true, bool writeCache = true, Duration? ttl, String defaultCharset(List<int>)?, String forcedCharset(List<int>)?})
→ Future<String>
-
-
postUri(Uri url, Object body, {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