mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
New XMLMap func which makes a map value type an xml compatible content to render and give option to render a Problem as XML - rel to #1335
Former-commit-id: dcf21098ff7af6becfa9896df5f82c3b0b53f0ac
This commit is contained in:
@@ -87,6 +87,11 @@ func problemExample(ctx iris.Context) {
|
||||
JSON: iris.JSON{
|
||||
Indent: " ",
|
||||
},
|
||||
// OR
|
||||
// Render as XML:
|
||||
// RenderXML: true,
|
||||
// XML: iris.XML{Indent: " "},
|
||||
//
|
||||
// Sets the "Retry-After" response header.
|
||||
//
|
||||
// Can accept:
|
||||
|
||||
Reference in New Issue
Block a user