- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for addInformationalResponse (0.13 sec)
-
okhttp/src/test/java/okhttp3/CallTest.kt
enableProtocol(Protocol.HTTP_2) serverRespondsWithEarlyHints() } @Test fun serverRespondsWithEarlyHints() { server.enqueue( MockResponse.Builder() .addInformationalResponse( MockResponse( code = HTTP_EARLY_HINTS, headers = headersOf("Link", "</style.css>; rel=preload; as=style"), ), ).build(), )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
.addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) .addHeader("Expires: " + formatDate(1, TimeUnit.HOURS)) .code(finalResponseCode) .body("ABCDE") .addInformationalResponse(MockResponse(initialResponseCode)) server.enqueue(builder.build()) server.start() val request = Request.Builder() .url(server.url("/")) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0)