Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBody ¶
func ParseBody(body io.ReadCloser, parameters interface{}) error
ParseBody reads the raw body data and parses it into the parameters reference
Types ¶
type Response ¶
type Response struct {
Payload chttp.Payload
Writer http.ResponseWriter
}
func (*Response) SetError ¶
SetError sets the error code and message. It is used before calling Error(statusCode)
func (*Response) SetPayload ¶
SetPayload updates the response.Payload with any data
Click to show internal directories.
Click to hide internal directories.