- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for StreamResetException (0.11 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
MockResponse(socketPolicy = ResetStreamAtStart(ErrorCode.REFUSED_STREAM.httpCode)), ) server.enqueue(MockResponse(body = "abc")) val call = client.newCall(Request(server.url("/"))) assertFailsWith<StreamResetException> { call.execute() }.also { expected -> assertThat(expected.errorCode).isEqualTo(ErrorCode.REFUSED_STREAM) } } @ParameterizedTest
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
val stream = connection.newStream(headerEntries(), true) connection.writePingAndAwaitPong() val sink = stream.getSink().buffer() sink.writeUtf8("abc") assertFailsWith<StreamResetException> { sink.close() }.also { expected -> assertThat(expected.errorCode).isEqualTo(ErrorCode.NO_ERROR) } assertThat(stream.takeHeaders()).isEqualTo(headersOf("a", "android"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 75.4K bytes - Viewed (0)