Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for CharArray (0.04 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

       * seconds.  If our implementation is acting correctly, it will not throw, as it is progressing.
       */
      @Test
      fun readTimeoutMoreGranularThanBodySize() {
        val body = CharArray(4096) // 4KiB to read.
        Arrays.fill(body, 'y')
        server.enqueue(
          MockResponse
            .Builder()
            .body(String(body))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        // Give the server time to disconnect.
        Thread.sleep(500)
    
        // If the request body is larger than OkHttp's replay buffer, the failure may still occur.
        val requestBodyChars = CharArray(requestSize)
        Arrays.fill(requestBodyChars, 'x')
        val requestBody = String(requestBodyChars)
        for (j in 0..1) {
          try {
            val response =
              getResponse(
                Request(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
Back to Top