- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for make (0.17 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
) val response = getResponse(newRequest("/")) assertContent("This is the 2nd server!", response) assertThat(response.request.url).isEqualTo( server2.url("/"), ) // make sure the first server was careful to recycle the connection assertContent("This is the first server again!", getResponse(Request(server.url("/"))))
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
.build() val request = Request.Builder().url(server.url("/")).build() assertFailsWith<InterruptedIOException> { // If this succeeds, too many requests were made. client.newCall(request).execute() } } /** * Make a request with two routes. The first route will time out because it's connecting to a * special address that never connects. The automatic retry will succeed. */ @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
.status("HTTP/1.1 200 Fantastic") transferKind.setBody(mockResponse, "I love puppies but hate spiders", 1) server.enqueue(mockResponse.build()) // Make sure that calling skip() doesn't omit bytes from the cache. val request = Request.Builder().url(server.url("/")).build() val response1 = client.newCall(request).execute() val in1 = response1.body.source()
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)