Body

trait Body

Holds Body that needs to be written on the HttpChannel

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def asChunk: Task[Chunk[Byte]]
def asStream: ZStream[Any, Throwable, Byte]
def write(ctx: Ctx): Task[Boolean]

Concrete methods

final def asArray: Task[Array[Byte]]
final def asCharSeq: ZIO[Any, Throwable, CharSequence]

Decodes the content of request as CharSequence

Decodes the content of request as CharSequence

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

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

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

final def asString: Task[String]

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

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