api

http4k / org.http4k.format / Xml

Xml

object Xml : AutoMarshallingXml (source)

Functions

Name Summary
asA fun <T : Any> asA(input: String, target: KClass<T>): T
asXmlDocument fun String.asXmlDocument(): Document
asXmlString fun Any.asXmlString(): String
fun Document.asXmlString(): String
asXmlToJsonElement fun String.asXmlToJsonElement(): JsonElement
fun asXmlToJsonElement(input: String): JsonElement
xml fun <IN : Any> BiDiLensSpec<IN, String>.xml(): BiDiLensSpec<IN, Document>

Inherited Functions

Name Summary
asA fun <T : Any> asA(input: String): T
abstract fun <T : Any> asA(input: String, target: KClass<T>): T
asXmlString fun asXmlString(input: Any): String

Companion Object Functions

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

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T