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
)?}
)
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;
}