yaml

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

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


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

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