Documentation ¶
Index ¶
- func AddCommonResponseHeader(apiContext *types.APIContext) error
- type EncodingResponseWriter
- func (j *EncodingResponseWriter) Body(apiContext *types.APIContext, writer io.Writer, obj interface{}) error
- func (j *EncodingResponseWriter) VersionBody(apiContext *types.APIContext, version *types.APIVersion, writer io.Writer, ...) error
- func (j *EncodingResponseWriter) Write(apiContext *types.APIContext, code int, obj interface{})
- type HTMLResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommonResponseHeader ¶
func AddCommonResponseHeader(apiContext *types.APIContext) error
Types ¶
type EncodingResponseWriter ¶
type EncodingResponseWriter struct { ContentType string Encoder func(io.Writer, interface{}) error }
func (*EncodingResponseWriter) Body ¶
func (j *EncodingResponseWriter) Body(apiContext *types.APIContext, writer io.Writer, obj interface{}) error
func (*EncodingResponseWriter) VersionBody ¶
func (j *EncodingResponseWriter) VersionBody(apiContext *types.APIContext, version *types.APIVersion, writer io.Writer, obj interface{}) error
func (*EncodingResponseWriter) Write ¶
func (j *EncodingResponseWriter) Write(apiContext *types.APIContext, code int, obj interface{})
type HTMLResponseWriter ¶
type HTMLResponseWriter struct {
EncodingResponseWriter
}
func (*HTMLResponseWriter) Write ¶
func (h *HTMLResponseWriter) Write(apiContext *types.APIContext, code int, obj interface{})
Click to show internal directories.
Click to hide internal directories.