Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toBytes (0.07 sec)

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

        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> {
          source.readByte() // If Content-Length was accurate, this would return -1 immediately.
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

        val request = Request.Builder().url(server.url("/b")).build()
        val response = client.newCall(request).execute()
        val bodySource = response.body.source()
        assertThat(bodySource.readByte()).isEqualTo('d'.code.toByte())
    
        // The second byte of this request will be delayed by 750ms so we should time out after 250ms.
        val startNanos = System.nanoTime()
        bodySource.use {
          assertFailsWith<IOException> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  3. src/main/resources/fess_indices/_aws/fess.json

    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Tue Mar 23 12:38:28 UTC 2021
    - 117.3K bytes
    - Viewed (0)
  4. src/main/resources/fess_indices/_cloud/fess.json

    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Feb 27 09:26:16 UTC 2021
    - 117.3K bytes
    - Viewed (0)
Back to top