HttpBody

oxygen.http.model.HttpBody
See theHttpBody companion trait
object HttpBody

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpBody.type

Members list

Type members

Classlikes

final case class Bytes(body: Array[Byte], contentType: ContentType, charset: Charset) extends NonEmpty

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait NonEmpty
trait HttpBody
class Object
trait Matchable
class Any
Show all
case object Empty extends HttpBody

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait HttpBody
class Object
trait Matchable
class Any
Show all
Self type
Empty.type
sealed trait NonEmpty extends HttpBody

Attributes

Supertypes
trait HttpBody
class Object
trait Matchable
class Any
Known subtypes
class Bytes
class Stream
class Text
final case class Stream(stream: URIO[Scope, InputStream], contentType: ContentType, charset: Charset, contentLength: Option[Long]) extends NonEmpty

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait NonEmpty
trait HttpBody
class Object
trait Matchable
class Any
Show all
final case class Text(body: String, contentType: ContentType) extends NonEmpty

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait NonEmpty
trait HttpBody
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def json(body: String): Text
def plain(body: String): Text

Concrete fields