Package dev.relism.flash.http2.hpack
Class HpackHeaderBlock
java.lang.Object
dev.relism.flash.http2.hpack.HpackHeaderBlock
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value, boolean sensitive) Accepts one field.intcount()voidget(int index, PooledSlice name, PooledSlice value) booleanneverIndexed(int index) voidreset()
-
Constructor Details
-
HpackHeaderBlock
public HpackHeaderBlock()
-
-
Method Details
-
reset
public void reset() -
count
public int count() -
neverIndexed
public boolean neverIndexed(int index) -
get
-
accept
public void accept(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value, boolean sensitive) Description copied from interface:HeaderSinkAccepts 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:
acceptin interfaceHeaderSink
-