Body

tyrian.http.Body
See theBody companion object
enum Body

The body of a request

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case PlainText

Members list

Type members

Enum entries

case case Empty extends Body

Represents an empty body e.g. for GET requests or POST request without any data.

Represents an empty body e.g. for GET requests or POST request without any data.

Attributes

final case class PlainText(contentType: String, body: String) extends Body

Create a request body with a string.

Create a request body with a string.

Value parameters

body

the content of the body

contentType

the content type of the body

Attributes