Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for myproxy (0.03 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

      fun proxyMoveTest(cleanClose: Boolean) {
        // Define a single Proxy at myproxy:8008 that will artificially move during the test
        val proxySelector = RecordingProxySelector()
        val socketAddress = InetSocketAddress.createUnresolved("myproxy", 8008)
        proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, socketAddress))
    
        // Define two host names for the DNS routing of fake proxy servers
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        val method = userResponse.request.method
        when (responseCode) {
          HTTP_PROXY_AUTH -> {
            val selectedProxy = route!!.proxy
            if (selectedProxy.type() != Proxy.Type.HTTP) {
              throw ProtocolException("Received HTTP_PROXY_AUTH (407) code while not using proxy")
            }
            return client.proxyAuthenticator.authenticate(route, userResponse)
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt

            Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved("proxy.example.com", 1003)),
            InetSocketAddress(ipv4Address, 1003),
          ).toString(),
        ).isEqualTo("example.com via proxy 1.2.3.4:1003")
        assertThat(
          Route(
            factory.newAddress(uriHost = "example.com", uriPort = 1003),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

        )
      }
    
      @Test
      @Throws(IOException::class)
      fun successfulHttpProxyConnect() {
        server!!.enqueue(MockResponse())
        val proxy = server!!.proxyAddress
        client =
          client
            .newBuilder()
            .proxy(proxy)
            .build()
        val call =
          client.newCall(
            Request
              .Builder()
              .url("http://www.fakeurl")
              .build(),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

          // If we used the ProxySelector, and got a IOException during connect, report the failure.
          if (route.address.proxy == null && route.proxy.type() != Proxy.Type.DIRECT) {
            route.address.proxySelector.connectFailed(
              route.address.url.toUri(),
              route.proxy.address(),
              e,
            )
          }
          user.connectFailed(route, null, e)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

      }
    
      /**
       * Invoked after proxy selection.
       *
       * Note that the list of proxies is never null, but it may be a list containing
       * only [Proxy.NO_PROXY]. This comes up in several situations:
       *
       * * If neither a proxy nor proxy selector is configured.
       * * If the proxy is configured explicitly as [Proxy.NO_PROXY].
       * * If the proxy selector returns only [Proxy.NO_PROXY].
       * * If the proxy selector returns an empty list or null.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

        var client = OkHttpClient.Builder().build()
        assertThat(client.proxy).isNull()
        assertThat(client.proxySelector)
          .isNotInstanceOf(NullProxySelector::class.java)
        client =
          OkHttpClient
            .Builder()
            .proxy(Proxy.NO_PROXY)
            .build()
        assertThat(client.proxy).isSameAs(Proxy.NO_PROXY)
        assertThat(client.proxySelector)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

        val protocols: List<Protocol> = address.protocols()
        val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs()
        val proxySelector: ProxySelector = address.proxySelector()
        val proxy: Proxy? = address.proxy()
        val sslSocketFactory: SSLSocketFactory? = address.sslSocketFactory()
        val hostnameVerifier: HostnameVerifier? = address.hostnameVerifier()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

              proxy: Proxy,
            ) = TODO()
    
            override fun secureConnectStart(call: Call) = TODO()
    
            override fun secureConnectEnd(
              call: Call,
              handshake: Handshake?,
            ) = TODO()
    
            override fun connectEnd(
              call: Call,
              inetSocketAddress: InetSocketAddress,
              proxy: Proxy,
              protocol: Protocol?,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/curl/CurlRequest.java

         */
        public String body() {
            return body;
        }
    
        /**
         * Sets the proxy for the request.
         *
         * @param proxy the proxy
         * @return this CurlRequest instance
         */
        public CurlRequest proxy(final Proxy proxy) {
            this.proxy = proxy;
            return this;
        }
    
        /**
         * Sets the character encoding for the request.
         *
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top