Class Decoder
java.lang.Object
org.apache.pekko.http.shaded.com.twitter.hpack.Decoder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in, HeaderListener headerListener) Decode the header block into header fields.boolean
End the current header block.int
Return the maximum table size.void
setMaxHeaderTableSize
(int maxHeaderTableSize) Set the maximum table size.
-
Constructor Details
-
Decoder
public Decoder(int maxHeaderSize, int maxHeaderTableSize) Creates a new decoder.
-
-
Method Details
-
decode
Decode the header block into header fields.- Throws:
IOException
-
endHeaderBlock
public boolean endHeaderBlock()End the current header block. Returns if the header field has been truncated. This must be called after the header block has been completely decoded. -
setMaxHeaderTableSize
public void setMaxHeaderTableSize(int maxHeaderTableSize) Set the maximum table size. If this is below the maximum size of the dynamic table used by the encoder, the beginning of the next header block MUST signal this change. -
getMaxHeaderTableSize
public int getMaxHeaderTableSize()Return the maximum table size. This is the maximum size allowed by both the encoder and the decoder.
-