public interface ChunkResponder extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this responder which signals the end of the chunk response.
|
void |
sendChunk(io.netty.buffer.ByteBuf chunk)
Adds a chunk of data to the response.
|
void |
sendChunk(ByteBuffer chunk)
Adds a chunk of data to the response.
|
void sendChunk(ByteBuffer chunk) throws IOException
chunk - content to sendIOException - if the connection is already closedvoid sendChunk(io.netty.buffer.ByteBuf chunk)
throws IOException
chunk - content to sendIOException - if this ChunkResponder already closed or the connection is closedvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright 2019 Cask, Inc. Licensed under the Apache License, Version 2.0