public final class Encoder extends Object
| Constructor and Description |
|---|
Encoder()
Creates a new encoder.
|
Encoder(boolean ignoreMaxHeaderListSize)
Creates a new encoder.
|
Encoder(boolean ignoreMaxHeaderListSize,
int arraySizeHint)
Creates a new encoder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encodeHeaders(int streamId,
io.netty.buffer.ByteBuf out,
Http2Headers headers,
Http2HeadersEncoder.SensitivityDetector sensitivityDetector)
Encode the header field into the header block.
|
long |
getMaxHeaderListSize() |
long |
getMaxHeaderTableSize()
Return the maximum table size.
|
void |
setMaxHeaderListSize(long maxHeaderListSize) |
void |
setMaxHeaderTableSize(io.netty.buffer.ByteBuf out,
long maxHeaderTableSize)
Set the maximum table size.
|
public Encoder()
public Encoder(boolean ignoreMaxHeaderListSize)
public Encoder(boolean ignoreMaxHeaderListSize,
int arraySizeHint)
public void encodeHeaders(int streamId,
io.netty.buffer.ByteBuf out,
Http2Headers headers,
Http2HeadersEncoder.SensitivityDetector sensitivityDetector)
throws Http2Exception
CharSequences must be immutable!Http2Exceptionpublic void setMaxHeaderTableSize(io.netty.buffer.ByteBuf out,
long maxHeaderTableSize)
throws Http2Exception
Http2Exceptionpublic long getMaxHeaderTableSize()
public void setMaxHeaderListSize(long maxHeaderListSize)
throws Http2Exception
Http2Exceptionpublic long getMaxHeaderListSize()
Copyright © 2008–2017 The Netty Project. All rights reserved.