Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StreamResetException (0.06 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

    import okhttp3.internal.http2.Http2Connection
    import okhttp3.internal.http2.Http2ExchangeCodec
    import okhttp3.internal.http2.Http2Stream
    import okhttp3.internal.http2.Settings
    import okhttp3.internal.http2.StreamResetException
    import okhttp3.internal.isHealthy
    import okhttp3.internal.tls.OkHostnameVerifier
    import okio.Buffer
    
    /**
     * A connection to a remote web server capable of carrying 1 or more concurrent streams.
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        val stream = connection.newStream(headerEntries(), true)
        connection.writePingAndAwaitPong()
        val sink = stream.sink.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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
Back to top