toon

inline fun <T : Any, R : HttpMessage> R.toon(t: T): R(source)

Convenience function to write the object as Toon to the message body and set the content type.


inline fun <T : Any> HttpMessage.toon(): T(source)

Convenience function to read an object as Toon from the message body.