Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for jcharArray (0.1 sec)

  1. okhttp/src/test/java/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(
    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

          .assertFailureMatches(".*unexpected end of stream on " + server.url("/").redact())
      }
    
      private fun stringFill(
        fillChar: Char,
        length: Int,
      ): String {
        val value = CharArray(length)
        Arrays.fill(value, fillChar)
        return String(value)
      }
    
      @Test
      fun canceledBeforeExecute() {
        val call = client.newCall(Request.Builder().url(server.url("/a")).build())
    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