buildDioInterceptor method

Future<ProxyInterceptor> buildDioInterceptor()

Creates a Dio interceptor for proxy support

This can be added to an existing Dio instance

Implementation

Future<ProxyInterceptor> buildDioInterceptor() async {
  final proxyManager = await buildProxyManager();

  return ProxyInterceptor(
    proxyManager: proxyManager,
    useValidatedProxies: _useValidatedProxies,
    rotateProxies: _rotateProxies,
    maxRetries: _maxRetries,
  );
}