HttpBody

data class HttpBody(val contentType: ContentType, val text: String)(source)

An encoded body, e.g. form, JSON or JWT, with its media type, which is sent as Content-Type with it. Bodies are always text, as is every body of the protocols covered here.

Constructors

Link copied to clipboard
constructor(contentType: ContentType, text: String)

Properties

Link copied to clipboard
val contentType: ContentType
Link copied to clipboard