Body

enum Body

The body of a request

Companion:
object
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Enum entries

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.

case 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