public interface ChunkResponder extends Closeable, Flushable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this responder which signals the end of the chunk response.
|
default void |
flush()
Flushes all the chunks writen so far to the client asynchronously.
|
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 closeddefault void flush()
void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright 2021 Cask, Inc. Licensed under the Apache License, Version 2.0