xml

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

Convenience function to write the object as XML 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.


fun Body.Companion.xml(description: String? = null, contentNegotiation: ContentNegotiation = ContentNegotiation.None): BiDiBodyLensSpec<Document>