Package org.apache.hc.core5.http2.hpack
Class HPackEncoder
- java.lang.Object
-
- org.apache.hc.core5.http2.hpack.HPackEncoder
-
@Internal public final class HPackEncoder extends java.lang.ObjectHPACK encoder.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description HPackEncoder(int maxTableSize, java.nio.charset.Charset charset)HPackEncoder(int maxTableSize, java.nio.charset.CharsetEncoder charsetEncoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeHeader(org.apache.hc.core5.util.ByteArrayBuffer dst, java.lang.String name, java.lang.String value, boolean sensitive)voidencodeHeader(org.apache.hc.core5.util.ByteArrayBuffer dst, org.apache.hc.core5.http.Header header)voidencodeHeaders(org.apache.hc.core5.util.ByteArrayBuffer dst, java.util.List<? extends org.apache.hc.core5.http.Header> headers, boolean useHuffman)intgetMaxTableSize()voidsetMaxTableSize(int maxTableSize)
-
-
-
Method Detail
-
encodeHeader
public void encodeHeader(org.apache.hc.core5.util.ByteArrayBuffer dst, org.apache.hc.core5.http.Header header) throws java.nio.charset.CharacterCodingException- Throws:
java.nio.charset.CharacterCodingException
-
encodeHeader
public void encodeHeader(org.apache.hc.core5.util.ByteArrayBuffer dst, java.lang.String name, java.lang.String value, boolean sensitive) throws java.nio.charset.CharacterCodingException- Throws:
java.nio.charset.CharacterCodingException
-
encodeHeaders
public void encodeHeaders(org.apache.hc.core5.util.ByteArrayBuffer dst, java.util.List<? extends org.apache.hc.core5.http.Header> headers, boolean useHuffman) throws java.nio.charset.CharacterCodingException- Throws:
java.nio.charset.CharacterCodingException
-
getMaxTableSize
public int getMaxTableSize()
-
setMaxTableSize
public void setMaxTableSize(int maxTableSize)
-
-