Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addProxy (0.04 sec)

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

        // Use a misconfigured proxy to guarantee that the request is retried.
        client =
          client
            .newBuilder()
            .proxySelector(
              FakeProxySelector()
                .addProxy(server2.proxyAddress)
                .addProxy(Proxy.NO_PROXY),
            ).build()
        server2.close()
        val request =
          Request(
            url = server.url("/def"),
            body = transferKind.newRequestBody("body"),
          )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        client =
          client
            .newBuilder()
            .proxySelector(
              FakeProxySelector()
                .addProxy(server2.proxyAddress)
                .addProxy(Proxy.NO_PROXY),
            ).build()
        server2.close()
        val request =
          Request(
            url = server.url("/"),
            body = "abc".toRequestBody("text/plain".toMediaType()),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top