public abstract class BodyConsumer extends Object
| Constructor and Description |
|---|
BodyConsumer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
chunk(io.netty.buffer.ByteBuf request,
HttpResponder responder)
Http request content will be streamed directly to this method.
|
abstract void |
finished(HttpResponder responder)
This is called on the receipt of the last HttpChunk.
|
abstract void |
handleError(Throwable cause)
When there is exception on netty while streaming, it will be propagated to handler
so the handler can do the cleanup.
|
public abstract void chunk(io.netty.buffer.ByteBuf request,
HttpResponder responder)
request - the next chunk to be consumedresponder - a HttpResponder for sending response back to client.public abstract void finished(HttpResponder responder)
responder - a HttpResponder for sending response back to client.public abstract void handleError(Throwable cause)
ExceptionHandler.cause - the reaons of the failure.Copyright 2019 Cask, Inc. Licensed under the Apache License, Version 2.0