Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,020 for soient (1.92 sec)

  1. native-image-tests/src/test/kotlin/okhttp3/nativeimage/SampleTest.kt

    class SampleTest {
      private val server = MockWebServer()
    
      private val client = OkHttpClient()
    
      @Test
      fun passingTest() {
        assertThat("hello").isEqualTo("hello")
      }
    
      @Test
      fun testMockWebServer() {
        server.enqueue(MockResponse(body = "abc"))
        server.start()
    
        client.newCall(Request(url = server.url("/"))).execute().use {
          assertThat(it.body.string()).isEqualTo("abc")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 22 20:31:49 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

        val client =
          OkHttpClient
            .Builder()
            .sslSocketFactory(sslContext.socketFactory, trustManager)
            .build()
    
        // An example test URL that returns client certificate details.
        val request =
          Request
            .Builder()
            .url("https://prod.idrix.eu/secure/")
            .build()
    
        client.newCall(request).execute().use { response ->
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. regression-test/src/androidTest/java/okhttp/regression/compare/OkHttpClientTest.java

     */
    @RunWith(AndroidJUnit4.class)
    public class OkHttpClientTest {
      @Test public void get() throws IOException {
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder()
            .url("https://google.com/robots.txt")
            .build();
        try (Response response = client.newCall(request).execute()) {
          assertEquals(200, response.code());
          assertEquals(Protocol.HTTP_2, response.protocol());
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Nov 14 17:38:22 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/AsynchronousGet.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.Response
    
    class AsynchronousGet {
      private val client = OkHttpClient()
    
      fun run() {
        val request =
          Request
            .Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build()
    
        client.newCall(request).enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. CHANGELOG/CHANGELOG-1.14.md

      - [Downloads for v1.14.10](#downloads-for-v11410)
        - [Client Binaries](#client-binaries)
        - [Server Binaries](#server-binaries)
        - [Node Binaries](#node-binaries)
      - [Changelog since v1.14.9](#changelog-since-v1149)
        - [Other notable changes](#other-notable-changes)
    - [v1.14.9](#v1149)
      - [Downloads for v1.14.9](#downloads-for-v1149)
        - [Client Binaries](#client-binaries-1)
        - [Server Binaries](#server-binaries-1)
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Mon Jun 14 22:06:39 UTC 2021
    - 271.5K bytes
    - Viewed (0)
  6. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSources.kt

    object EventSources {
      @Deprecated(
        message = "required for binary-compatibility!",
        level = DeprecationLevel.HIDDEN,
      )
      @JvmStatic
      fun createFactory(client: OkHttpClient) = client.asEventSourceFactory()
    
      @Deprecated(
        message = "Moved to extension function.",
        replaceWith =
          ReplaceWith(
            expression = "callFactory.asEventSourceFactory()",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.2.md

    [kubernetes-client-linux-386.tar.gz](https://storage.googleapis.com/kubernetes-release/release/v1.2.7/kubernetes-client-linux-386.tar.gz) | `619e0a450cddf10ed1d42ed1d6330d41a75b9c1e00eb654cbe4b0422cd6099c5`
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Fri Dec 04 06:36:19 UTC 2020
    - 41.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      private lateinit var server: MockWebServer
      private lateinit var client: OkHttpClient
    
      val listener = RecordingEventListener()
    
      fun setUp(mode: Pair<CancelMode, ConnectionType>) {
        this.cancelMode = mode.first
        this.connectionType = mode.second
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java

            .header("Cache-Control", "max-age=60")
            .build();
      };
    
      private final OkHttpClient client;
    
      public RewriteResponseCacheControl(File cacheDirectory) throws Exception {
        Cache cache = new Cache(cacheDirectory, 1024 * 1024);
        cache.evictAll();
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/PacConstants.java

        /**
         * Buffer type for client name information.
         */
        int CLIENT_NAME_TYPE = 0xA;
        /**
         * Buffer type for constrained delegation information.
         */
        int CONSTRAINT_DELEGATIION_TYPE = 0xB;
        /**
         * Buffer type for client user principal name.
         */
        int CLIENT_UPN_TYPE = 0xC;
        /**
         * Buffer type for client claims information.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top