Class HpackHeaderBlock

java.lang.Object
dev.relism.flash.http2.hpack.HpackHeaderBlock
All Implemented Interfaces:
HeaderSink

public final class HpackHeaderBlock extends Object implements HeaderSink
Reusable per-stream storage for decoded header fields. Copying at the decoder boundary makes a stream independent of later HPACK dynamic-table eviction on the connection thread.
  • Constructor Details

    • HpackHeaderBlock

      public HpackHeaderBlock()
  • Method Details

    • reset

      public void reset()
    • count

      public int count()
    • neverIndexed

      public boolean neverIndexed(int index)
    • get

      public void get(int index, PooledSlice name, PooledSlice value)
    • accept

      public void accept(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value, boolean sensitive)
      Description copied from interface: HeaderSink
      Accepts one field. The views are valid only for the duration of this call; a sink that needs them afterwards must copy them into storage owned by the stream.
      Specified by:
      accept in interface HeaderSink