- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for addInformationalResponse (0.46 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
* headers delay on that response to delay its transmission. */ fun addInformationalResponse(response: MockResponse) = apply { informationalResponses += response } fun add100Continue() = apply { addInformationalResponse(MockResponse(code = 100)) } public override fun clone(): Builder = build().newBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 13.3K bytes - Viewed (0) -
mockwebserver/api/mockwebserver3.api
public final fun addHeaderLenient (Ljava/lang/String;Ljava/lang/Object;)Lmockwebserver3/MockResponse$Builder; public final fun addInformationalResponse (Lmockwebserver3/MockResponse;)Lmockwebserver3/MockResponse$Builder; public final fun addPush (Lmockwebserver3/PushPromise;)Lmockwebserver3/MockResponse$Builder;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 03 21:59:45 UTC 2023 - 12.7K bytes - Viewed (0) -
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)