xml
fun Configuration.xml(format: XML = DefaultXml, contentType: ContentType = ContentType.Application.Xml)(source)
Registers the application/xml
(or another specified contentType) content type to the ContentNegotiation plugin using kotlinx.serialization.
You can learn more from the corresponding client and server documentation.
Parameters
format
instance. DefaultXml is used by default
contentType
to register with, application/xml
by default