Xml

Properties

Link copied to clipboard
open override val defaultContentType: ContentType

Functions

Link copied to clipboard
inline fun <T : Any> asA(input: InputStream): T
inline fun <T : Any> asA(input: String): T
fun <T : Any> String.asA(target: KClass<T>): T
inline fun <T : Any> String.asA(): T
open override fun <T : Any> asA(input: InputStream, target: KClass<T>): T
open override fun <T : Any> asA(input: String, target: KClass<T>): T
Link copied to clipboard
open override fun asFormatString(input: Any): String
Link copied to clipboard
open fun asInputStream(input: Any): InputStream
Link copied to clipboard
Link copied to clipboard
open override fun Any.asXmlString(): String
Link copied to clipboard
fun String.asXmlToJsonElement(): JsonElement
@JvmName(name = "stringAsXmlToJsonElement")
fun asXmlToJsonElement(input: String): JsonElement
Link copied to clipboard
Link copied to clipboard
inline fun <IN : Any, OUT : Any> autoLens(lens: BiDiLensSpec<IN, String>): BiDiLensSpec<IN, OUT>
Link copied to clipboard
inline fun <IN : Any, OUT : Any> convert(input: IN): OUT
Link copied to clipboard
inline fun <T : Any> HttpMessage.xml(): T

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

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.

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