Proxy

org.http4s.blaze.http.BodyReader.Proxy
abstract class Proxy(underlying: BodyReader) extends BodyReader

Provides a simple way to proxy a BodyReader

Attributes

Source
BodyReader.scala
Graph
Supertypes
trait BodyReader
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def apply(): Future[ByteBuffer]

Get a Future which may contain message body data.

Get a Future which may contain message body data.

If no data remains, the ByteBuffer will be empty as defined by ByteBuffer.hasRemaining()

Attributes

Definition Classes
Source
BodyReader.scala
override def discard(): Unit

Throw away this BodyReader

Throw away this BodyReader

Attributes

Definition Classes
Source
BodyReader.scala
override def isExhausted: Boolean

Examine whether the BodyReader may yield additional data.

Examine whether the BodyReader may yield additional data.

This may be a result of being discarded, failure, or deletion of the data stream.

Because BodyReader is async it is not, in general, possible to definitively determine if more data remains in the stream. Therefore, the contract of this method is that a return value of true guarantees that no more data can be obtained from this BodyReader, but a return value of false does not guarantee more data.

Attributes

Definition Classes
Source
BodyReader.scala

Inherited methods

Accumulate any remaining data.

Accumulate any remaining data.

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()

Value parameters

max

maximum bytes to accumulate before resulting in a failed future with the exception BodyReader.BodyReaderOverflowException.

Attributes

Inherited from:
BodyReader
Source
BodyReader.scala