xml

fun Configuration.xml(format: XML = DefaultXml, contentType: ContentType = ContentType.Application.Xml)

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.

Report a problem

Parameters

format

instance. DefaultXml is used by default

contentType

to register with, application/xml by default