Class Decoder
java.lang.Object
org.apache.pekko.http.shaded.com.twitter.hpack.Decoder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddecode(InputStream in, HeaderListener headerListener) Decode the header block into header fields.booleanEnd the current header block.intReturn the maximum table size.voidsetMaxHeaderTableSize(int maxHeaderTableSize) Set the maximum table size.
- 
Constructor Details- 
Decoderpublic Decoder(int maxHeaderSize, int maxHeaderTableSize) Creates a new decoder.
 
- 
- 
Method Details- 
decodeDecode the header block into header fields.- Throws:
- IOException
 
- 
endHeaderBlockpublic 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.
- 
setMaxHeaderTableSizepublic 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.
- 
getMaxHeaderTableSizepublic int getMaxHeaderTableSize()Return the maximum table size. This is the maximum size allowed by both the encoder and the decoder.
 
-