public static interface HTTPRequestProcessor.HTTPRequestCallback
HTTPRequestProcessor
.Modifier and Type | Method | Description |
---|---|---|
void |
bodyData(java.nio.ByteBuffer bb) |
Called after
headersFinished(HTTPRequest) is called for any body associated with the request. |
void |
finished() |
This is called when the http request finishes.
|
void |
hasError(java.lang.Throwable t) |
This is called if there is a parsing error or the connection closes before finished, or any other error reason.
|
void |
headersFinished(HTTPRequest hr) |
Called when we reach a completed
HTTPRequest header. |
void |
websocketData(WSFrame wsf,
java.nio.ByteBuffer bb) |
If the last headersFinished was a websocket request this will be called back on each frame we get from processed data.
|
void headersFinished(HTTPRequest hr)
HTTPRequest
header.hr
- the completed HTTPRequest
.void bodyData(java.nio.ByteBuffer bb)
headersFinished(HTTPRequest)
is called for any body associated with the request.
If the body is chunked this will be called per chunk of data and the chunk header is not included.bb
- the body in a ByteBuffer
void websocketData(WSFrame wsf, java.nio.ByteBuffer bb)
wsf
- The WSFrame
that was wrapping the data.bb
- the payload of the frame, it will be unmasked already if its needed.void finished()
void hasError(java.lang.Throwable t)
headersFinished(HTTPRequest)
can still be called.t
- the error that occurred.