Dart
Dart
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat Dart Downloads
import 'package:chilkat/chilkat.dart';
void main() {
final http = CkHttp();
// Establish 2 cache root directories.
http.addCacheRoot('c:/example/httpCacheA/');
http.addCacheRoot('c:/example/httpCacheB/');
print('Number of cache roots: ${http.numCacheRoots}');
print('1st cache root: ${http.getCacheRoot(0)}');
print('2nd cache root: ${http.getCacheRoot(1)}');
// Output:
// Number of cache roots: 2
// 1st cache root: c:/example/httpCacheA/
// 2nd cache root: c:/example/httpCacheB/
}