Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getAndResetHeaderList (0.19 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        hpackWriter!!.writeHeaders(headerBlock)
        bytesIn.writeAll(bytesOut)
        hpackReader!!.readHeaders()
        assertThat(hpackReader!!.headerCount).isEqualTo(0)
        assertThat(hpackReader!!.getAndResetHeaderList()).isEqualTo(headerBlock)
      }
    
      /**
       * HPACK has a max header table size, which can be smaller than the max header message. Ensure the
       * larger header content is not lost.
       */
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

        // TODO: Concat multi-value headers with 0x0, except COOKIE, which uses 0x3B, 0x20.
        // http://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-8.1.2.5
        hpackReader.readHeaders()
        return hpackReader.getAndResetHeaderList()
      }
    
      @Throws(IOException::class)
      private fun readData(
        handler: Handler,
        length: Int,
        flags: Int,
        streamId: Int,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          private var nextHeaderIndex = dynamicTable.size - 1
    
          @JvmField var headerCount = 0
    
          @JvmField var dynamicTableByteCount = 0
    
          fun getAndResetHeaderList(): List<Header> {
            val result = headerList.toList()
            headerList.clear()
            return result
          }
    
          fun maxDynamicTableByteCount(): Int = maxDynamicTableByteCount
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top