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)?})
-
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 = 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, 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, 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, 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