mirror of
https://github.com/square/okhttp.git
synced 2025-08-07 12:42:57 +03:00
Call proxy selector on failure (#8415)
* Call proxy selector on failure --------- Co-authored-by: Jesse Wilson <jesse@swank.ca>
This commit is contained in:
@@ -30,8 +30,8 @@ import okhttp3.internal.format
|
||||
class RecordingProxySelector : ProxySelector() {
|
||||
@JvmField val proxies = mutableListOf<Proxy>()
|
||||
|
||||
private val requestedUris = mutableListOf<URI>()
|
||||
private val failures = mutableListOf<String>()
|
||||
val requestedUris = mutableListOf<URI>()
|
||||
val failures = mutableListOf<String>()
|
||||
|
||||
override fun select(uri: URI): List<Proxy> {
|
||||
requestedUris.add(uri)
|
||||
|
Reference in New Issue
Block a user