- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for non (0.15 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
// number 0. Since the client may have attempted to reuse the broken connection just before // creating a fresh connection, the server may have recorded 2 requests at this point. The order // of recording is non-deterministic. val requestAfter = server.takeRequest() assertThat( requestAfter.sequenceNumber == 0 || server.requestCount == 3 && server.takeRequest().sequenceNumber == 0, ).isTrue() }
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) -
okhttp/src/test/java/okhttp3/CallTest.kt
executeSynchronously("/") .assertFailure("HTTP 204 had non-zero Content-Length: 39") } @Test fun http205WithBodyDisallowed() { server.enqueue( MockResponse( code = 205, body = "I'm not even supposed to be here today.", ), ) executeSynchronously("/") .assertFailure("HTTP 205 had non-zero Content-Length: 39") } @Test
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/CacheTest.kt
} /** * For Last-Modified and Date headers, we should echo the date back in the exact format we were * served. */ @Test fun retainServedDateFormat() { // Serve a response with a non-standard date format that OkHttp supports. val lastModifiedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-1)) val servedDate = Date(System.currentTimeMillis() + TimeUnit.HOURS.toMillis(-2))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0)