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
Known subtypes

Members list

Concise view

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.

Attributes

body

the content of the body

contentType

the content type of the body