Class Encoder
java.lang.Object
org.apache.pekko.http.shaded.com.twitter.hpack.Encoder
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidencodeHeader(OutputStream out, String name, String value, boolean sensitive) Encode the header field into the header block.intReturn the maximum table size.voidsetMaxHeaderTableSize(OutputStream out, int maxHeaderTableSize) Set the maximum table size.
- 
Constructor Details- 
Encoderpublic Encoder(int maxHeaderTableSize) Creates a new encoder.
 
- 
- 
Method Details- 
encodeHeaderpublic void encodeHeader(OutputStream out, String name, String value, boolean sensitive) throws IOException Encode the header field into the header block.- Throws:
- IOException
 
- 
setMaxHeaderTableSizeSet the maximum table size.- Throws:
- IOException
 
- 
getMaxHeaderTableSizepublic int getMaxHeaderTableSize()Return the maximum table size.
 
-