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