ProxyConfig constructor

const ProxyConfig({
  1. required String targetUrl,
  2. required String proxyUrl,
  3. Map<String, String> headers = const {},
  4. Duration timeout = const Duration(seconds: 30),
  5. int retries = 2,
  6. bool cacheEnabled = false,
  7. String? cacheDir,
  8. Duration cacheTtl = const Duration(minutes: 10),
})

Implementation

const ProxyConfig({
  required this.targetUrl,
  required this.proxyUrl,
  this.headers = const {},
  this.timeout = const Duration(seconds: 30),
  this.retries = 2,
  this.cacheEnabled = false,
  this.cacheDir,
  this.cacheTtl = const Duration(minutes: 10),
});