xml

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

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


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

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