ok

fun ok(content: Any = "", contentType: String? = null)

Sends success response with given content type.

Parameters

content

Content of the response.

contentType

Content type of the response.


fun ok(content: Any, serializationFormat: SerializationFormat = responseFormat, charset: Charset? = null)

Sends success response serialized using given SerializationFormat and Charset.

Parameters

content

Content of the response.

serializationFormat

Serialization format for serializing the response.

charset

Character Set to be used for the content type.