Class ChunkBuffer


  • public final class ChunkBuffer
    extends Object
    Class that will buffer incoming BufferBytes to chunks of bufferSize. If totalBytes is not provided, i.e. content-length is unknown, getBufferedData() should be used in the Subscriber's onComplete() to check for a final chunk that is smaller than the chunk size, and send if present.