Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
Data any `json:"data"`
Meta map[string]any `json:"meta,omitempty"`
Headers map[string]string `json:"-"`
}
func (Response) SetCustomHeaders ¶
func (resp Response) SetCustomHeaders(w http.ResponseWriter)
type XML ¶
type XML struct {
Content []byte
ContentType string
// StatusCode overrides Kite's default success HTTP status code when set to a valid HTTP status.
// If not set (0) or invalid, Kite uses its existing status selection logic.
StatusCode int
}
XML represents a response that should be sent as XML without JSON encoding. If ContentType is empty, Responder defaults it to application/xml.
Click to show internal directories.
Click to hide internal directories.