public class HeaderBlockParser
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.eclipse.jetty.http.MetaData |
SESSION_FAILURE |
|
static org.eclipse.jetty.http.MetaData |
STREAM_FAILURE |
| Constructor | Description |
|---|---|
HeaderBlockParser(HeaderParser headerParser,
org.eclipse.jetty.io.ByteBufferPool byteBufferPool,
HpackDecoder hpackDecoder,
BodyParser notifier) |
| Modifier and Type | Method | Description |
|---|---|---|
org.eclipse.jetty.http.MetaData |
parse(java.nio.ByteBuffer buffer,
int blockLength) |
Parses @{code blockLength} HPACK bytes from the given
buffer. |
public static final org.eclipse.jetty.http.MetaData STREAM_FAILURE
public static final org.eclipse.jetty.http.MetaData SESSION_FAILURE
public HeaderBlockParser(HeaderParser headerParser, org.eclipse.jetty.io.ByteBufferPool byteBufferPool, HpackDecoder hpackDecoder, BodyParser notifier)
public org.eclipse.jetty.http.MetaData parse(java.nio.ByteBuffer buffer,
int blockLength)
buffer.buffer - the buffer to parseblockLength - the length of the HPACK blockblockLength bytes;
STREAM_FAILURE if parsing the HPACK block produced a stream failure;
SESSION_FAILURE if parsing the HPACK block produced a session failure;
a valid MetaData object if the parsing was successful.Copyright © 1995–2018 Webtide. All rights reserved.