- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for addPush (0.08 sec)
-
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
if (copyFromWebSocketListener != null) { result.webSocketUpgrade(copyFromWebSocketListener) } val body = getBody() if (body != null) result.body(body) for (pushPromise in pushPromises) { result.addPush(pushPromise.wrap()) } result.settings(settings) result.status = status result.headers(headers) result.trailers(trailers) result.socketPolicy = when (socketPolicy) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
} /** * When [protocols][MockWebServer.protocols] include [HTTP_2][okhttp3.Protocol], this attaches a * pushed stream to this response. */ fun addPush(promise: PushPromise) = apply { this.pushPromises += promise } /** * When [protocols][MockWebServer.protocols] include [HTTP_2][okhttp3.Protocol], this pushes
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
"GET", "/foo/bar", headersOf("foo", "bar"), MockResponse(body = "bar"), ) server.enqueue( MockResponse.Builder() .body("ABCDE") .addPush(pushPromise) .build(), ) val call = client.newCall(Request(server.url("/foo"))) val response = call.execute() assertThat(response.body.string()).isEqualTo("ABCDE")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0)