Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,114 for CLIENT (0.04 sec)

  1. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdTestMain.kt

    import okhttp3.Request
    
    fun main() {
      val client =
        OkHttpClient
          .Builder()
          .addInterceptor(CompressionInterceptor(Zstd))
          .build()
    
      sendRequest("https://developers.facebook.com/docs/", client)
      sendRequest("https://www.facebook.com/robots.txt", client)
      sendRequest("https://www.instagram.com/robots.txt", client)
    }
    
    private fun sendRequest(
      url: String,
      client: OkHttpClient,
    ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 20:01:04 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt

          .build()
    
      @JvmStatic
      fun providers(
        client: OkHttpClient,
        http2Only: Boolean,
        workingOnly: Boolean,
        getOnly: Boolean,
      ): List<DnsOverHttps> =
        buildList {
          add(buildGoogle(client))
          if (!getOnly) {
            add(buildGooglePost(client))
          }
          add(buildCloudflare(client))
          add(buildCloudflareIp(client))
          if (!getOnly) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/config/MultiChannelConfigurationTest.java

            Properties props = new Properties();
            props.setProperty("jcifs.smb.client.useMultiChannel", "true");
            props.setProperty("jcifs.smb.client.maxChannels", "6");
            props.setProperty("jcifs.smb.client.channelBindingPolicy", "required");
            props.setProperty("jcifs.smb.client.loadBalancingStrategy", "least_loaded");
            props.setProperty("jcifs.smb.client.channelHealthCheckInterval", "15");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

          ),
        )
        server!!.enqueue(MockResponse())
        val dns = FakeDns()
        dns["fakeurl"] = client.dns.lookup(server!!.hostName)
        dns["www.fakeurl"] = client.dns.lookup(server!!.hostName)
        client =
          client
            .newBuilder()
            .dns(dns)
            .build()
        val call =
          client.newCall(
            Request
              .Builder()
              .url("http://fakeurl:" + server!!.port)
    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/jvmTest/kotlin/okhttp3/InterceptorTest.kt

            .message("Intercepted!")
            .body("abc".toResponseBody("text/plain; charset=utf-8".toMediaType()))
            .build()
        client =
          client
            .newBuilder()
            .addInterceptor(Interceptor { chain: Interceptor.Chain? -> interceptorResponse })
            .build()
        val response = client.newCall(request).execute()
        assertThat(response).isSameInstanceAs(interceptorResponse)
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  6. samples/slack/src/main/java/okhttp3/slack/SlackClient.java

        if (true) {
          client.requestOauthSession(scopes, null);
        } else {
          OAuthSession session = new OAuthSession(true,
              "xoxp-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
              scopes, "UXXXXXXXX", "My Slack Group", "TXXXXXXXX");
          client.initOauthSession(session);
        }
    
        client.awaitAccessToken(Timeout.NONE);
        client.startRtm();
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

        val response = client.newCall(request).execute()
        assertThat(response.body.string()).isEqualTo("b")
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(0)
        assertThat(server.takeRequest().exchangeIndex).isEqualTo(1)
      }
    
      @Test
      fun connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow() {
        client =
          client
            .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxyTest.kt

        server.enqueue(MockResponse.Builder().body("def").build())
        val client =
          clientTestRule
            .newClientBuilder()
            .proxy(socksProxy.proxy())
            .build()
        val request1 = Request.Builder().url(server.url("/")).build()
        val response1 = client.newCall(request1).execute()
        assertThat(response1.body.string()).isEqualTo("abc")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client
            .newBuilder()
            .protocols(listOf(protocol, Protocol.HTTP_1_1))
            .build()
        server1.protocols = client.protocols
        server2.protocols = client.protocols
      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt

          *expectedConnectionCipherSuites(client).toTypedArray(),
        )
      }
    
      @Test
      fun testDefaultHandshakeCipherSuiteOrderingTls13Modern() {
        // We are avoiding making guarantees on ordering of secondary Platforms.
        platform.assumeNotBouncyCastle()
    
        val client = makeClient(ConnectionSpec.MODERN_TLS, TlsVersion.TLS_1_3)
    
        val handshake = makeRequest(client)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.2K bytes
    - Viewed (0)
Back to top