Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for proxyAuthenticator (0.35 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

          tunnelCodec.skipConnectBody(response)
    
          when (response.code) {
            HttpURLConnection.HTTP_OK -> return null
    
            HttpURLConnection.HTTP_PROXY_AUTH -> {
              nextRequest = route.address.proxyAuthenticator.authenticate(route, response)
                ?: throw IOException("Failed to authenticate with proxy")
    
              if ("close".equals(response.header("Connection"), ignoreCase = true)) {
                return nextRequest
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Oct 08 03:50:05 UTC 2025
    - 19.3K bytes
    - Viewed (2)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

            if (selectedProxy.type() != Proxy.Type.HTTP) {
              throw ProtocolException("Received HTTP_PROXY_AUTH (407) code while not using proxy")
            }
            return client.proxyAuthenticator.authenticate(route, userResponse)
          }
    
          HTTP_UNAUTHORIZED -> return client.authenticator.authenticate(route, userResponse)
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. okhttp/api/jvm/okhttp.api

    	public fun hashCode ()I
    	public final fun hostnameVerifier ()Ljavax/net/ssl/HostnameVerifier;
    	public final fun protocols ()Ljava/util/List;
    	public final fun proxy ()Ljava/net/Proxy;
    	public final fun proxyAuthenticator ()Lokhttp3/Authenticator;
    	public final fun proxySelector ()Ljava/net/ProxySelector;
    	public final fun socketFactory ()Ljavax/net/SocketFactory;
    	public final fun sslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.2K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

            .newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).proxy(server.proxyAddress)
            .proxyAuthenticator(RecordingOkAuthenticator("password", "Basic"))
            .hostnameVerifier(RecordingHostnameVerifier())
            .build()
        val request = Request("https://android.com/foo".toHttpUrl())
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 147.4K bytes
    - Viewed (0)
  5. okhttp/api/android/okhttp.api

    	public fun hashCode ()I
    	public final fun hostnameVerifier ()Ljavax/net/ssl/HostnameVerifier;
    	public final fun protocols ()Ljava/util/List;
    	public final fun proxy ()Ljava/net/Proxy;
    	public final fun proxyAuthenticator ()Lokhttp3/Authenticator;
    	public final fun proxySelector ()Ljava/net/ProxySelector;
    	public final fun socketFactory ()Ljavax/net/SocketFactory;
    	public final fun sslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.3K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

            .inTunnel()
            .build(),
        )
        server.enqueue(MockResponse())
        client =
          client
            .newBuilder()
            .proxy(server.proxyAddress)
            .proxyAuthenticator(RecordingOkAuthenticator("password", "Basic"))
            .build()
        val call =
          client.newCallWithListener(
            Request
              .Builder()
              .url(server.url("/"))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.5K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

          MockResponse
            .Builder()
            .inTunnel()
            .build(),
        )
        server.enqueue(MockResponse(body = "A"))
        client =
          client
            .newBuilder()
            .proxyAuthenticator(Authenticator.JAVA_NET_AUTHENTICATOR)
            .proxy(server.proxyAddress)
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

            .build(),
        )
        server.enqueue(MockResponse(body = "response body"))
        val client =
          client
            .newBuilder()
            .proxy(server.proxyAddress)
            .proxyAuthenticator(RecordingOkAuthenticator("password", "Basic"))
            .build()
    
        val url = server.url("/").resolve("//android.com/foo")!!
        val port =
          when (url.scheme) {
            "https" -> 443
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 67.4K bytes
    - Viewed (0)
Back to top