ScHttpClient constructor
ScHttpClient({
- String? getCache() = _getCacheDmy,
- void setCache() = _setCacheDmy,
- String? getPostCache() = _getPostCacheDmy,
- void setPostCache() = _setPostCacheDmy,
- Uint8List? getBinCache() = _getBinCacheDmy,
- void setBinCache() = _setCacheDmy,
- bool forceCache = false,
- bool forceBinCache = false,
- String? userAgent,
- String findProxy()?,
Implementation
ScHttpClient({
this.getCache = _getCacheDmy,
this.setCache = _setCacheDmy,
this.getPostCache = _getPostCacheDmy,
this.setPostCache = _setPostCacheDmy,
this.getBinCache = _getBinCacheDmy,
this.setBinCache = _setCacheDmy,
this.forceCache = false,
this.forceBinCache = false,
String? userAgent,
String Function(Uri)? findProxy,
}) {
if (userAgent != null) _client.userAgent = userAgent;
if (findProxy != null) _client.findProxy = findProxy;
}