mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
40 lines
921 B
Go
40 lines
921 B
Go
|
// Copyright 2017 Gerasimos Maropoulos, ΓΜ. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
package context
|
||
|
|
||
|
// +-------------------------------+
|
||
|
// | Restful |
|
||
|
// +-------------------------------+
|
||
|
|
||
|
// JSON contains the options for the JSON (Context's) Renderer.
|
||
|
type JSON struct {
|
||
|
// http-specific
|
||
|
StreamingJSON bool
|
||
|
// content-specific
|
||
|
UnescapeHTML bool
|
||
|
Indent string
|
||
|
Prefix string
|
||
|
}
|
||
|
|
||
|
// JSONP contains the options for the JSONP (Context's) Renderer.
|
||
|
type JSONP struct {
|
||
|
// content-specific
|
||
|
Indent string
|
||
|
Callback string
|
||
|
}
|
||
|
|
||
|
// XML contains the options for the XML (Context's) Renderer.
|
||
|
type XML struct {
|
||
|
// content-specific
|
||
|
Indent string
|
||
|
Prefix string
|
||
|
}
|
||
|
|
||
|
// Markdown contains the options for the Markdown (Context's) Renderer.
|
||
|
type Markdown struct {
|
||
|
// content-specific
|
||
|
Sanitize bool
|
||
|
}
|