Companion

object Companion

Functions

Link copied to clipboard
fun binary(value: ByteArray): Content

Arbitrary binary content.

Link copied to clipboard
fun json(value: ByteArray): Content
fun json(value: String): Content

A JSON document.

Link copied to clipboard
fun serializedJavaObject(value: ByteArray): Content

The serialized form of a Java object as generated by java.io.ObjectOutputStream.

Link copied to clipboard
fun string(value: String): Content

Arbitrary textual content (UTF-8).