- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for jcharArray (0.15 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
@ArgumentsSource(ProtocolParamProvider::class) fun readTimeoutMoreGranularThanBodySize( protocol: Protocol, mockWebServer: MockWebServer, ) { setUp(protocol, mockWebServer) val body = CharArray(4096) // 4KiB to read. Arrays.fill(body, 'y') server.enqueue( MockResponse.Builder() .body(String(body)) .throttleBody(1024, 1, TimeUnit.SECONDS) // Slow connection 1KiB/second.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
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())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
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(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0)