- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for pushPromises (0.1 sec)
-
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt
mockWebServer.close() } @Test @Ignore fun pushPromise() { val pushPromise: PushPromise = PushPromise("", "", headersOf(), MockResponse()) val method: String = pushPromise.method val path: String = pushPromise.path val headers: Headers = pushPromise.headers val response: MockResponse = pushPromise.response } @Test @Ignore fun queueDispatcher() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.3K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
this.socketPolicy = builder.socketPolicy this.bodyDelayNanos = builder.bodyDelayNanos this.headersDelayNanos = builder.headersDelayNanos this.pushPromises = builder.pushPromises.toList() this.settings = Settings().apply { merge(builder.settings) } } fun newBuilder(): Builder = Builder(this) override fun toString(): String = status
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-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/MockWebServer.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
protocol = Protocol.get("") } @Test fun pushPromise() { val pushPromise: PushPromise = PushPromise("", "", headersOf(), MockResponse()) val method: String = pushPromise.method val path: String = pushPromise.path val headers: Headers = pushPromise.headers val response: MockResponse = pushPromise.response } @Test fun queueDispatcher() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt
private var headersDelayAmount = 0L private var headersDelayUnit = TimeUnit.MILLISECONDS private var promises = mutableListOf<PushPromise>() var settings: Settings = Settings() private set var webSocketListener: WebSocketListener? = null private set val pushPromises: List<PushPromise> get() = promises init { setResponseCode(200) setHeader("Content-Length", 0L) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.2K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/PushPromise.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.mockwebserver import okhttp3.Headers class PushPromise( @get:JvmName("method") val method: String, @get:JvmName("path") val path: String, @get:JvmName("headers") val headers: Headers, @get:JvmName("response") val response: MockResponse, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.7K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/PushPromise.kt
* limitations under the License. */ package mockwebserver3 import okhttp3.ExperimentalOkHttpApi import okhttp3.Headers /** An HTTP request initiated by the server. */ @ExperimentalOkHttpApi class PushPromise( val method: String, val path: String, val headers: Headers, val response: MockResponse,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 874 bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt
assertThat(requestHeaders).isEqualTo(pushPromise) } }, ) } /** Headers are compressed, then framed. */ @Test fun pushPromiseThenContinuation() { val expectedPromisedStreamId = 11 val pushPromise = largeHeaders() // Decoding the first header will cross frame boundaries. val headerBlock = literalHeaders(pushPromise) // Write the first headers frame.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 28.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
} @Test @Disabled fun pushPromise() { val pushPromise = PushPromise("", "", Headers.of(), MockResponse()) val method: String = pushPromise.method() val path: String = pushPromise.path() val headers: Headers = pushPromise.headers() val response: MockResponse = pushPromise.response() } @Test @Disabled fun recordedRequest() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.3K bytes - Viewed (0)