Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPContext ¶
type HTTPContext struct {
// contains filtered or unexported fields
}
func NewHTTPContext ¶
func NewHTTPContext(writer http.ResponseWriter, request *http.Request) *HTTPContext
func (*HTTPContext) Body ¶
func (ctx *HTTPContext) Body() []byte
func (*HTTPContext) Error ¶
func (ctx *HTTPContext) Error(code int, err error)
func (*HTTPContext) JSON ¶
func (ctx *HTTPContext) JSON(code int, object interface{})
func (*HTTPContext) Params ¶
func (ctx *HTTPContext) Params() map[string]string
func (*HTTPContext) Write ¶
func (ctx *HTTPContext) Write(code int, response []byte)
type HTTPErrorResponse ¶
type HTTPErrorResponse struct {
Errors []jakiro.ContextError `json:"errors"`
}
Click to show internal directories.
Click to hide internal directories.