BodyReader

object BodyReader
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

abstract class Proxy(underlying: BodyReader) extends BodyReader
Provides a simple way to proxy a BodyReader
final class BodyReaderOverflowException(val max: Int, val accumulated: Long) extends Exception

Value members

Methods

def singleBuffer(buffer: ByteBuffer): BodyReader
Construct a BodyReader with exactly one chunk of data
This method takes ownership if the passed ByteBuffer: any changes to the underlying
buffer will be visible to the consumer of this BodyReader and vice versa.
Note
if the passed buffer is empty, the EmptyBodyReader is returned.
def accumulate(max: Int, body: BodyReader): Future[ByteBuffer]
The remainder of the message body will be accumulated into a single buffer. If no data remains,
the ByteBuffer will be empty as defined by ByteBuffer.hasRemaining()

Fields

The canonical empty BodyReader
This should be the instance you use if you want to signal that the message body is
in guaranteed to be empty.