Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { DoSomeWork(http.ResponseWriter, *http.Request) ParseJSON(http.ResponseWriter, *http.Request) ParseJSONapi(http.ResponseWriter, *http.Request) }
Handler is a request handler interface
type RequestHandler ¶
type RequestHandler struct {
// contains filtered or unexported fields
}
RequestHandler handles http requests
func NewRequestHandler ¶
func NewRequestHandler() *RequestHandler
NewRequestHandler creates new http request handler
func (*RequestHandler) DoSomeWork ¶
func (h *RequestHandler) DoSomeWork(w http.ResponseWriter, r *http.Request)
DoSomeWork does some dummy work
func (*RequestHandler) ParseJSON ¶
func (h *RequestHandler) ParseJSON(w http.ResponseWriter, r *http.Request)
ParseJSON parses and beautifies input in json format
func (*RequestHandler) ParseJSONapi ¶
func (h *RequestHandler) ParseJSONapi(w http.ResponseWriter, r *http.Request)
ParseJSONapi parses and beautifies input in JSON:API format
Click to show internal directories.
Click to hide internal directories.