Readable

trait Readable extends Writable

A Readable is a source of bytes that can be read from an InputStream

A subtype of Writable, every Readable can be trivially used as a Writable by transferring the bytes from the InputStream to the OutputStream, but not every Writable is a Readable.

Note that the InputStream is only available inside the readBytesThrough, and may be closed and cleaned up (along with any associated resources) once the callback returns.

Companion:
object
trait Writable
class Object
trait Matchable
class Any

Value members

Abstract methods

def readBytesThrough[T](f: InputStream => T): T

Concrete methods

def writeBytesTo(out: OutputStream): Unit

Inherited methods

def contentLength: Option[Long]
Inherited from:
Writable
def httpContentType: Option[String]
Inherited from:
Writable