- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for valid1 (0.25 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
} @Test fun getRequestPropertyReturnsLastValue() { val request = Request.Builder() .url(server.url("/")) .addHeader("A", "value1") .addHeader("A", "value2") .build() assertThat(request.header("A")).isEqualTo("value2") } @Test fun responseHeaders() { server.enqueue( MockResponse.Builder()
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
* connection that returns to the connection pool with the underlying socket closed. This relies * on an implementation detail so it might not be a valid test case in the future. */ @Test fun cancelAfterResponseBodyEnd() { enableTls() server.enqueue(MockResponse(body = "abc")) server.enqueue(MockResponse(body = "def")) client =
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
.body("C") .build(), ) val valid = server.url("/valid") val response1 = get(valid) assertThat(response1.body.string()).isEqualTo("A") assertThat(response1.code).isEqualTo(HttpURLConnection.HTTP_OK) assertThat(response1.message).isEqualTo("A-OK") val response2 = get(valid) assertThat(response2.body.string()).isEqualTo("A")
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)