Body

zio.http.Body
See theBody companion object
sealed trait Body

Holds Body that needs to be written on the HttpChannel

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Abstract methods

def asArray(implicit trace: Trace): Task[Array[Byte]]
def asChunk(implicit trace: Trace): Task[Chunk[Byte]]
def asStream(implicit trace: Trace): ZStream[Any, Throwable, Byte]

Concrete methods

final def asCharSeq(implicit trace: Trace): ZIO[Any, Throwable, CharSequence]

Decodes the content of request as CharSequence

Decodes the content of request as CharSequence

Attributes

final def asString(charset: Charset)(implicit trace: Trace): Task[String]

Decodes the content of request as string with the provided charset.

Decodes the content of request as string with the provided charset.

Attributes

final def asString(implicit trace: Trace): Task[String]

Decodes the content of request as string with the default charset.

Decodes the content of request as string with the default charset.

Attributes