okhttp / okhttp3 / OkHttpClient / Builder / proxySelector

proxySelector

fun proxySelector(proxySelector: ProxySelector): OkHttpClient.Builder

Sets the proxy selection policy to be used if no proxy is specified explicitly. The proxy selector may return multiple proxies; in that case they will be tried in sequence until a successful connection is established.

If unset, the system-wide default proxy selector will be used.