Path: redb-route/redb.Route.Templates/MediaType.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Templates/MediaType.cs ---- namespace redb.Route.Templates; /// /// Result type of a payload template. Decides how substituted values are escaped and which /// ContentType the produced body gets. Mandatory: without it a value containing a quote or /// an ampersand silently breaks the document (WSO2 PayloadFactory defaults to XML, which is a trap). /// public enum MediaType { /// JSON: ", \ and control characters in substituted strings are escaped; ContentType = application/json. Json, /// XML: &, <, >, ", ' in substituted strings are escaped; ContentType = application/xml. Xml, /// Plain text: no escaping; ContentType = text/plain. Text, }