Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CharArray (0.03 sec)

  1. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        assertThat(recordedRequest.url.encodedQuery)
          .isEqualTo("ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
      }
    
      @Test
      fun failOnExcessiveResponse() {
        val array = CharArray(128 * 1024 + 2) { '0' }
        server.enqueue(dnsResponse(String(array)))
        try {
          dns.lookup("google.com")
          fail<Any>()
        } catch (ioe: IOException) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  2. 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))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 67.4K bytes
    - Viewed (0)
Back to top