Collection of Kotlin extensions for OkHttp
- enhanced proxy support
Okhttp client using a socks proxy with credentials
val withCredentials = socksProxy.extended(UsernamePasswordCredentials(username, password))
val proxiedOkhttpClient = okhttpClient.withProxy(withCredentials)
Proxy provider and call manager
val rotatingProvider = RotatingProxyProvider(proxies)
val nextProxy = rotatingProvider.next()
val callManager = SimpleProxyCallManager(okhttpClient, rotatingProvider)
callManager.newCall(request).execute()