yaml

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

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


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

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