Companion

object Companion

Functions

binary
Link copied to clipboard
fun binary(value: ByteArray): Content
Arbitrary binary content.
json
Link copied to clipboard
fun json(value: ByteArray): Content
A JSON document.
fun json(value: String): Content
A JSON document.
serializedJavaObject
Link copied to clipboard
fun serializedJavaObject(value: ByteArray): Content
The serialized form of a Java object as generated by java.io.ObjectOutputStream.
string
Link copied to clipboard
fun string(value: String): Content
Arbitrary textual content (UTF-8).