public class HTTPParsingMachine
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPParsingMachine.ParsingMode |
class |
HTTPParsingMachine.Result |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONNECT_METHOD |
| Constructor and Description |
|---|
HTTPParsingMachine(HTTPParsingMachine.ParsingMode mode) |
| Modifier and Type | Method and Description |
|---|---|
HTTPParsingMachine.Result |
parse(java.nio.ByteBuffer buf)
Parse the current buffer and return a result that may contain headers, a body, both, or neither.
|
void |
reset()
Reset the parsing state so that we can continue to parse from new buffers.
|
void |
setIgnoreBody(boolean ignore)
Indicate that we don't need to look for the message body, which pretty much means that the request
was a HEAD.
|
public static final java.lang.String CONNECT_METHOD
public HTTPParsingMachine(HTTPParsingMachine.ParsingMode mode)
public HTTPParsingMachine.Result parse(java.nio.ByteBuffer buf)
public void reset()
public void setIgnoreBody(boolean ignore)
Copyright © 2018 Apigee Corporation. All Rights Reserved.