- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for onResponseEnd (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
.Builder() .body("This connection won't pool properly") .onResponseEnd(ShutdownConnection) .build(), ) } @Test fun serverShutdownInput() { testServerClosesOutput( MockResponse .Builder() .body("This connection won't pool properly") .onResponseEnd( CloseSocket( closeSocket = false,
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
.addHeader("Connection", "Close") .body("You took too long!") .onResponseEnd(ShutdownConnection) .build(), ) server.enqueue( MockResponse .Builder() .code(408) .addHeader("Connection", "Close") .body("You took too long!") .onResponseEnd(ShutdownConnection) .build(), ) val request = Request(server.url("/"))
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 147.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
*/ private fun truncateViolently( builder: MockResponse.Builder, numBytesToKeep: Int, ): MockResponse.Builder { val response = builder.build() builder.onResponseEnd(ShutdownConnection) val headers = response.headers val fullBody = Buffer() response.body!!.writeTo(fullBody) val truncatedBody = Buffer() truncatedBody.write(fullBody, numBytesToKeep.toLong())
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 03 17:41:45 UTC 2025 - 116.8K bytes - Viewed (0)