Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matcher ¶
Matcher simple wrapper wo implement request matching.
type Responder ¶
type Responder func(http.ResponseWriter)
Responder is a simple way to define response. Just a wrapper around a function.
func ResponseBody ¶
ResponseBody specifies body of the response as a string.
func ResponseHeader ¶
ResponseHeader specifies header in the reponse.
func ResponseStatus ¶
ResponseStatus specifies status code. this method must be called first due to the http.ResponseWriter. Otherwise we will always get 200.
Click to show internal directories.
Click to hide internal directories.