TransferEncoding
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final long | |
| private static final int[] | |
| private static final byte[] | |
| private static final int | |
| private final int | |
| public static final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | checkOverflow(final long value)
Returns: false if next left bit-shift by 4 bits will cause overflow, or true otherwise |
| private static Buffer | encodeHttpChunk(final MemoryManager<E extends Buffer> memoryManager, final HttpContent httpContent, final boolean isLastChunk)
|
| private void | |
| private static boolean | |
| private static boolean | parseHttpChunkLength(final HttpPacketParsing httpPacket, final Buffer input, final boolean strictLineTerminator)
|
| private boolean | parseLastChunkTrailer(final FilterChainContext ctx, final HttpHeader httpHeader, final HttpPacketParsing httpPacket, final Buffer input)
|
| public ParsingResult | parsePacket(final FilterChainContext ctx, final HttpHeader httpPacket, Buffer buffer)
Implements org. Parse HTTP packet payload, represented by |
| private static Buffer | |
| public void | prepareSerialize(final FilterChainContext ctx, final HttpHeader httpHeader, final HttpContent content)
Implements org. This method will be called by |
| public Buffer | serializePacket(final FilterChainContext ctx, final HttpContent httpContent)
Implements org. Serialize HTTP packet payload, represented by |
| public boolean | wantDecode(final HttpHeader httpPacket)
Implements org. Return true if this encoding should be used to parse the content of the passed |
| public boolean | wantEncode(final HttpHeader httpPacket)
Implements org. Return true if this encoding should be used to serialize the content of the passed |
| CHUNK_LENGTH_PARSED_STATE | back to summary |
|---|---|
| private static final int CHUNK_LENGTH_PARSED_STATE | |
| CHUNK_SIZE_OVERFLOW | back to summary |
|---|---|
| private static final long CHUNK_SIZE_OVERFLOW | |
| DEC | back to summary |
|---|---|
| private static final int[] DEC | |
| LAST_CHUNK_CRLF_BYTES | back to summary |
|---|---|
| private static final byte[] LAST_CHUNK_CRLF_BYTES | |
| MAX_HTTP_CHUNK_SIZE_LENGTH | back to summary |
|---|---|
| private static final int MAX_HTTP_CHUNK_SIZE_LENGTH | |
| maxHeadersSize | back to summary |
|---|---|
| private final int maxHeadersSize | |
| STRICT_CHUNKED_TRANSFER_CODING_LINE_TERMINATOR_RFC_9112 | back to summary |
|---|---|
| public static final String STRICT_CHUNKED_TRANSFER_CODING_LINE_TERMINATOR_RFC_9112 | |
| strictLineTerminator | back to summary |
|---|---|
| private final boolean strictLineTerminator | |
| ChunkedTransferEncoding | back to summary |
|---|---|
| public ChunkedTransferEncoding(final int maxHeadersSize) | |
| ChunkedTransferEncoding | back to summary |
|---|---|
| public ChunkedTransferEncoding(final int maxHeadersSize, final Properties props) | |
| checkOverflow | back to summary |
|---|---|
private static boolean checkOverflow(final long value)
| |
| encodeHttpChunk | back to summary |
|---|---|
| private static Buffer encodeHttpChunk(final MemoryManager<E extends Buffer> memoryManager, final HttpContent httpContent, final boolean isLastChunk) | |
| initTrailerParsing | back to summary |
|---|---|
| private void initTrailerParsing(HttpPacketParsing httpPacket) | |
| isHeadRequest | back to summary |
|---|---|
| private static boolean isHeadRequest(final HttpHeader header) | |
| parseHttpChunkLength | back to summary |
|---|---|
| private static boolean parseHttpChunkLength(final HttpPacketParsing httpPacket, final Buffer input, final boolean strictLineTerminator) | |
| parseLastChunkTrailer | back to summary |
|---|---|
| private boolean parseLastChunkTrailer(final FilterChainContext ctx, final HttpHeader httpHeader, final HttpPacketParsing httpPacket, final Buffer input) | |
| parsePacket | back to summary |
|---|---|
| public ParsingResult parsePacket(final FilterChainContext ctx, final HttpHeader httpPacket, Buffer buffer) Implements org. Doc from org. Parse HTTP packet payload, represented by
| |
| parseTrailerCRLF | back to summary |
|---|---|
| private static Buffer parseTrailerCRLF(final HttpPacketParsing httpPacket, final Buffer input) | |
| prepareSerialize | back to summary |
|---|---|
| public void prepareSerialize(final FilterChainContext ctx, final HttpHeader httpHeader, final HttpContent content) Implements org. Doc from org. This method will be called by
| |
| serializePacket | back to summary |
|---|---|
| public Buffer serializePacket(final FilterChainContext ctx, final HttpContent httpContent) Implements org. Doc from org. Serialize HTTP packet payload, represented by
| |
| wantDecode | back to summary |
|---|---|
| public boolean wantDecode(final HttpHeader httpPacket) Implements org. Doc from org. Return true if this encoding should be used to parse the content of the passed
| |
| wantEncode | back to summary |
|---|---|
| public boolean wantEncode(final HttpHeader httpPacket) Implements org. Doc from org. Return true if this encoding should be used to serialize the content of the passed
| |