Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for resizeHeaderTable (0.08 sec)

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

        )
      }
    
      @Test
      fun manyDynamicTableSizeChanges() {
        hpackWriter!!.resizeHeaderTable(16384)
        hpackWriter!!.resizeHeaderTable(8096)
        hpackWriter!!.resizeHeaderTable(0)
        hpackWriter!!.resizeHeaderTable(4096)
        hpackWriter!!.resizeHeaderTable(2048)
        hpackWriter!!.writeHeaders(listOf(Header("foo", "bar")))
        assertBytes(
          // Dynamic size update (size = 0).
          0x20,
    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/Http2Writer.kt

        this.withLock {
          if (closed) throw IOException("closed")
          this.maxFrameSize = peerSettings.getMaxFrameSize(maxFrameSize)
          if (peerSettings.headerTableSize != -1) {
            hpackWriter.resizeHeaderTable(peerSettings.headerTableSize)
          }
          frameHeader(
            streamId = 0,
            length = 0,
            type = TYPE_SETTINGS,
            flags = FLAG_ACK,
          )
          sink.flush()
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

              out.write(huffmanBytes)
            } else {
              writeInt(data.size, PREFIX_7_BITS, 0)
              out.write(data)
            }
          }
    
          fun resizeHeaderTable(headerTableSizeSetting: Int) {
            this.headerTableSizeSetting = headerTableSizeSetting
            val effectiveHeaderTableSize = minOf(headerTableSizeSetting, SETTINGS_HEADER_TABLE_SIZE_LIMIT)
    
    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