Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sources (0.16 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        val response = getResponse(newRequest("/"))
        val source = response.body.source()
        source.timeout().timeout(1000, TimeUnit.MILLISECONDS)
        assertThat(source.readByte()).isEqualTo('A'.code.toByte())
        assertThat(source.readByte()).isEqualTo('B'.code.toByte())
        assertThat(source.readByte()).isEqualTo('C'.code.toByte())
        assertFailsWith<SocketTimeoutException> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        val response = call.execute()
        val source = response.body.source()
        assertThat(response.header("h1")).isEqualTo("v1")
        assertThat(response.header("h2")).isEqualTo("v2")
        assertThat(source.readUtf8(5)).isEqualTo("Hello")
        assertThat(source.readUtf8(7)).isEqualTo("Bonjour")
        assertThat(source.exhausted()).isTrue()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/AsyncTimeout$sink$1;->close()V
    HSPLokio/AsyncTimeout$sink$1;->flush()V
    HSPLokio/AsyncTimeout$sink$1;->write(Lokio/Buffer;J)V
    HSPLokio/AsyncTimeout$source$1;-><init>(Lokio/AsyncTimeout;Lokio/Source;)V
    HSPLokio/AsyncTimeout$source$1;->close()V
    HSPLokio/AsyncTimeout$source$1;->read(Lokio/Buffer;J)J
    HSPLokio/AsyncTimeout;-><clinit>()V
    HSPLokio/AsyncTimeout;-><init>()V
    HSPLokio/AsyncTimeout;->enter()V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

          MockResponse.Builder()
            .body("Request #2")
            .build(),
        )
        val response1 = get(server.url("/"))
        val source = response1.body.source()
        assertThat(source.readUtf8(5)).isEqualTo("ABCDE")
        source.close()
        assertFailsWith<IllegalStateException> {
          source.readByte()
        }
        assertThat(cache.writeAbortCount()).isEqualTo(1)
        assertThat(cache.writeSuccessCount()).isEqualTo(0)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  5. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    country
    
    // coupon : 2015-02-26 Amazon Registry Services, Inc.
    coupon
    
    // coupons : 2015-03-26 Binky Moon, LLC
    coupons
    
    // courses : 2014-12-04 Registry Services, LLC
    courses
    
    // cpa : 2019-06-10 American Institute of Certified Public Accountants
    cpa
    
    // credit : 2014-03-20 Binky Moon, LLC
    credit
    
    // creditcard : 2014-03-20 Binky Moon, LLC
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
Back to top