- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for toByte (0.15 sec)
-
okhttp/src/test/java/okhttp3/CallTest.kt
val request = Request.Builder().url(server.url("/b")).build() val response = client.newCall(request).execute() val bodySource = response.body.source() assertThat(bodySource.readByte()).isEqualTo('d'.code.toByte()) // The second byte of this request will be delayed by 750ms so we should time out after 250ms. val startNanos = System.nanoTime() bodySource.use { assertFailsWith<IOException> {
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)