xml

inline fun <T : Any, R : HttpMessage> R.xml(t: T): R(source)
fun <IN : Any> BiDiLensSpec<IN, String>.xml(config: XmlParsingConfig = defaultXmlParsingConfig): BiDiLensSpec<IN, Document>(source)

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


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

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


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