Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for byteArray (0.05 sec)

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

              if (writeKind == WriteKind.BYTE_BY_BYTE) {
                for (i in 0 until n) {
                  sink.writeByte('x'.code)
                }
              } else {
                val buf = ByteArray(if (writeKind == WriteKind.SMALL_BUFFERS) 256 else 64 * 1024)
                Arrays.fill(buf, 'x'.code.toByte())
                var i = 0
                while (i < n) {
                  sink.write(buf, 0, Math.min(buf.size, n - i))
    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

          Request.Builder()
            .url(server.url("/"))
            .head()
            .build()
        val response = client.newCall(headRequest).execute()
        assertThat(response.code).isEqualTo(200)
        assertArrayEquals(ByteArray(0), response.body.bytes())
        val getRequest = Request(server.url("/"))
        executeSynchronously(getRequest)
          .assertCode(200)
          .assertBody("abc")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top