Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Http2Reader (0.31 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

     *
     * This implementation assumes we do not send an increased [frame][Settings.getMaxFrameSize] to the
     * peer. Hence, we expect all frames to have a max length of [Http2.INITIAL_MAX_FRAME_SIZE].
     */
    class Http2Reader(
      /** Creates a frame reader with max header table size of 4096. */
      private val source: BufferedSource,
      private val client: Boolean,
    ) : Closeable {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

      private class OutFrame(
        val sequence: Int,
        val start: Long,
        val truncated: Boolean,
      )
    
      class InFrame(val sequence: Int, val reader: Http2Reader) : Http2Reader.Handler {
        @JvmField var type = -1
        var clearPrevious = false
    
        @JvmField var outFinished = false
    
        @JvmField var inFinished = false
    
        @JvmField var streamId = 0
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/BaseTestHandler.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import assertk.fail
    import okio.BufferedSource
    import okio.ByteString
    
    internal open class BaseTestHandler : Http2Reader.Handler {
      override fun data(
        inFinished: Boolean,
        streamId: Int,
        source: BufferedSource,
        length: Int,
      ) {
        fail("")
      }
    
      override fun headers(
        inFinished: Boolean,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.GzipSink
    import okio.buffer
    import org.junit.jupiter.api.Test
    
    class Http2Test {
      val frame = Buffer()
      val reader = Http2Reader(frame, false)
      val expectedStreamId = 15
    
      @Test fun unknownFrameTypeSkipped() {
        writeMedium(frame, 4) // has a 4-byte field
        frame.writeByte(99) // type 99
        frame.writeByte(FLAG_NONE)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       * Methods in this class must not lock FrameWriter. If a method needs to write a frame, create an
       * async task to do so.
       */
      inner class ReaderRunnable internal constructor(
        internal val reader: Http2Reader,
      ) : Http2Reader.Handler, () -> Unit {
        override fun invoke() {
          var connectionErrorCode = ErrorCode.INTERNAL_ERROR
          var streamErrorCode = ErrorCode.INTERNAL_ERROR
          var errorException: IOException? = null
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  6. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/http2/Http2Reader$ContinuationSource;-><init>(Lokio/BufferedSource;)V
    HSPLokhttp3/internal/http2/Http2Reader$ContinuationSource;->read(Lokio/Buffer;J)J
    HSPLokhttp3/internal/http2/Http2Reader;-><clinit>()V
    HSPLokhttp3/internal/http2/Http2Reader;-><init>(Lokio/BufferedSource;Z)V
    HSPLokhttp3/internal/http2/Http2Reader;->close()V
    HSPLokhttp3/internal/http2/Http2Reader;->lengthWithoutPadding(III)I
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top