Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 284 for clientX (0.06 sec)

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

      }
    
      @Test fun durationDefaults() {
        val client = clientTestRule.newClient()
        assertThat(client.callTimeoutMillis).isEqualTo(0)
        assertThat(client.connectTimeoutMillis).isEqualTo(10000)
        assertThat(client.readTimeoutMillis).isEqualTo(10000)
        assertThat(client.writeTimeoutMillis).isEqualTo(10000)
        assertThat(client.pingIntervalMillis).isEqualTo(0)
        assertThat(client.webSocketCloseTimeout).isEqualTo(60_000)
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  2. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt

    import javax.net.ssl.SSLSocketFactory
    import okhttp3.ConnectionSpec
    import okhttp3.OkHttp
    import okhttp3.survey.types.Client
    import okhttp3.survey.types.SuiteId
    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.conscrypt.Conscrypt
    
    fun currentOkHttp(ianaSuites: IanaSuites): Client =
      Client(
        userAgent = "OkHttp",
        version = OkHttp.VERSION,
        enabled =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/PerCallSettings.kt

        try {
          client1.newCall(request).execute().use { response ->
            println("Response 1 succeeded: $response")
          }
        } catch (e: IOException) {
          println("Response 1 failed: $e")
        }
    
        // Copy to customize OkHttp for this request.
        val client2 =
          client
            .newBuilder()
            .readTimeout(3000, TimeUnit.MILLISECONDS)
            .build()
        try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

     * authentication is optional.
     *
     * To perform client authentication:
     *
     *  * The client's handshake certificates must have a [held certificate][HeldCertificate] (a
     *    certificate and its private key). The client must also have a (possibly-empty) chain of
     *    intermediate certificates to establish trust from a root certificate to the client's
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

        }
    
        // Test multiple instances
        public void test_multipleInstances() {
            // Test that multiple instances can be created independently
            CrawlerEngineClient client1 = new CrawlerEngineClient();
            CrawlerEngineClient client2 = new CrawlerEngineClient();
    
            assertNotNull(client1);
            assertNotNull(client2);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

              call: Call,
              e: IOException,
            ) {
              fail("")
            }
          },
        )
        val client2 =
          client
            .newBuilder()
            .eventListenerFactory(clientTestRule.wrap(request2Listener))
            .build()
        val call2 = client2.newCall(request)
        val response = call2.execute()
        assert200Http2Response(response, "san.com")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. docs/recipes.md

                .build();
            try (Response response = client1.newCall(request).execute()) {
              System.out.println("Response 1 succeeded: " + response);
            } catch (IOException e) {
              System.out.println("Response 1 failed: " + e);
            }
    
            // Copy to customize OkHttp for this request.
            OkHttpClient client2 = client.newBuilder()
                .readTimeout(3000, TimeUnit.MILLISECONDS)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

            .build(),
        )
        val client1 =
          client
            .newBuilder()
            .readTimeout(Duration.ofSeconds(2))
            .build()
        val call1 =
          client1
            .newCall(
              Request
                .Builder()
                .url(server.url("/"))
                .build(),
            )
        val client2 =
          client
            .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  9. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

    import mockwebserver3.junit5.StartStop
    import org.apache.hc.client5.http.classic.methods.HttpGet
    import org.apache.hc.client5.http.impl.classic.HttpClients
    import org.apache.hc.core5.http.io.entity.EntityUtils
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    /**
     * Apache HttpClient 5.x.
     *
     * https://hc.apache.org/httpcomponents-client-5.0.x/index.html
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. okhttp-tls/README.md

        .build();
    ```
    
    Client Authentication
    ---------------------
    
    The above scenario is representative of most TLS set ups: the client uses certificates to validate
    the identity of a server. The converse is also possible. Here we create a server that authenticates
    a client and a client that authenticates a server.
    
    ```java
    // Create the root for client and server to trust. We could also use different roots for each!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top