BodyWriter

scamper.http.BodyWriter
@FunctionalInterface
trait BodyWriter

Defines body writer.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def data: InputStream
Implicitly added by bodyWriterToEntity

Gets input stream to data.

Gets input stream to data.

Attributes

def knownSize: Option[Long]
Implicitly added by bodyWriterToEntity

Gets size in bytes if known.

Gets size in bytes if known.

Attributes

def write(out: OutputStream): Unit

Writes body to given output stream.

Writes body to given output stream.

Value parameters

out

output stream

Attributes

Concrete methods

def isKnownEmpty: Boolean
Implicitly added by bodyWriterToEntity

Tests for known emptiness.

Tests for known emptiness.

Attributes