HttpData

sealed trait HttpData

Holds HttpData that needs to be written on the HttpChannel

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def toByteBuf(config: ByteBufConfig): Task[ByteBuf]

Encodes the HttpData into a ByteBuf. Takes in ByteBufConfig to have a more fine grained control over the encoding.

Encodes the HttpData into a ByteBuf. Takes in ByteBufConfig to have a more fine grained control over the encoding.

def toByteBufStream(config: ByteBufConfig): ZStream[Any, Throwable, ByteBuf]

Encodes the HttpData into a Stream of ByteBufs. Takes in ByteBufConfig to have a more fine grained control over the encoding.

Encodes the HttpData into a Stream of ByteBufs. Takes in ByteBufConfig to have a more fine grained control over the encoding.

def toHttp(config: ByteBufConfig): Http[Any, Throwable, Any, ByteBuf]

Encodes the HttpData into a Http of ByeBuf. This could be more performant in certain cases. Takes in ByteBufConfig to have a more fine grained control over the encoding.

Encodes the HttpData into a Http of ByeBuf. This could be more performant in certain cases. Takes in ByteBufConfig to have a more fine grained control over the encoding.

Concrete methods

final def isEmpty: Boolean

Returns true if HttpData is empty

Returns true if HttpData is empty

final def toByteBuf: Task[ByteBuf]

Encodes the HttpData into a ByteBuf.

Encodes the HttpData into a ByteBuf.

final def toByteBufStream: ZStream[Any, Throwable, ByteBuf]

Encodes the HttpData into a Stream of ByteBufs

Encodes the HttpData into a Stream of ByteBufs

final def toHttp: Http[Any, Throwable, Any, ByteBuf]

A bit more efficient version of toByteBuf in certain cases

A bit more efficient version of toByteBuf in certain cases