1
0
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:
Yuri Schimke
2024-11-23 19:12:40 +00:00
committed by GitHub
parent 4ba74c7f9c
commit f07f4ccbd4
3 changed files with 20 additions and 2 deletions

View File

@@ -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)