Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for proxya (0.03 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt

        private const val PROXY_A_HOST = "proxya"
        private val proxyA =
          Proxy(
            Proxy.Type.HTTP,
            InetSocketAddress.createUnresolved(PROXY_A_HOST, PROXY_A_PORT),
          )
    
        private const val PROXY_B_PORT = 1002
        private const val PROXY_B_HOST = "proxyb"
        private val proxyB =
          Proxy(
            Proxy.Type.HTTP,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt

        }
    
        return Selection(routes)
      }
    
      /** Prepares the proxy servers to try. */
      private fun resetNextProxy(
        url: HttpUrl,
        proxy: Proxy?,
      ) {
        fun selectProxies(): List<Proxy> {
          // If the user specifies a proxy, try that and only that.
          if (proxy != null) return listOf(proxy)
    
          // If the URI lacks a host (as in "http://</"), don't call the ProxySelector.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

      /** Returns the client's proxy authenticator. */
      @get:JvmName("proxyAuthenticator") val proxyAuthenticator: Authenticator,
      /**
       * Returns this address's explicitly-specified HTTP proxy, or null to delegate to the
       * [proxy selector][proxySelector].
       */
      @get:JvmName("proxy") val proxy: Proxy?,
      protocols: List<Protocol>,
      connectionSpecs: List<ConnectionSpec>,
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

        }
      }
    
      @Test
      fun testUrlConnectionPlaintextProxied() {
        testRequest {
          val proxy =
            Proxy(
              Proxy.Type.HTTP,
              it.remoteAddress(),
            )
    
          val url = URI(mockServer.endpoint + "/person?name=peter").toURL()
    
          val connection = url.openConnection(proxy) as HttpURLConnection
    
          assertThat(
            connection.inputStream
              .source()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val timestampNs: Long,
        override val call: Call,
        val inetSocketAddress: InetSocketAddress,
        val proxy: Proxy?,
      ) : CallEvent()
    
      data class ConnectEnd(
        override val timestampNs: Long,
        override val call: Call,
        val inetSocketAddress: InetSocketAddress,
        val proxy: Proxy?,
        val protocol: Protocol?,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      override fun connectEnd(
        call: Call,
        inetSocketAddress: InetSocketAddress,
        proxy: Proxy,
        protocol: Protocol?,
      ) = logEvent(ConnectEnd(System.nanoTime(), call, inetSocketAddress, proxy, protocol))
    
      override fun connectFailed(
        call: Call,
        inetSocketAddress: InetSocketAddress,
        proxy: Proxy,
        protocol: Protocol?,
        ioe: IOException,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

        assertEquals(LIST1, ImmutableList.copyOf(newDelegatingListWithEquals(LIST1)));
      }
    
      public void testToString() {
        List<String> proxy = newDelegatingList(LIST1);
        assertEquals(Proxy.getInvocationHandler(proxy).toString(), proxy.toString());
      }
    
      interface A {}
    
      interface B {}
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(newDelegatingList(LIST1))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 02:48:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Route.kt

    package okhttp3
    
    import java.net.InetSocketAddress
    import java.net.Proxy
    import okhttp3.internal.toCanonicalHost
    
    /**
     * The concrete route used by a connection to reach an abstract origin server. When creating a
     * connection the client has many options:
     *
     *  * **HTTP proxy:** a proxy server may be explicitly configured for the client. Otherwise, the
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt

    import java.io.IOException
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    
    class FakeProxySelector : ProxySelector() {
      val proxies: MutableList<Proxy> = mutableListOf()
    
      fun addProxy(proxy: Proxy): FakeProxySelector {
        proxies.add(proxy)
        return this
      }
    
      override fun select(uri: URI): List<Proxy> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/proxy/NullProxySelector.kt

     * limitations under the License.
     */
    package okhttp3.internal.proxy
    
    import java.io.IOException
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    
    /**
     * A proxy selector that always returns the [Proxy.NO_PROXY].
     */
    object NullProxySelector : ProxySelector() {
      override fun select(uri: URI?): List<Proxy> {
        requireNotNull(uri) { "uri must not be null" }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top