Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContentType ¶
CheckContentType is used to check the real contents of Content-type in http header
Types ¶
type ContentCheckMiddleware ¶
type ContentCheckMiddleware struct { }
ContentCheckMiddleware is used to check if content-Type of the POST Request is an acceptable type.
func (*ContentCheckMiddleware) ServeHTTP ¶
func (c *ContentCheckMiddleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
ServeHTTP implements the negroni middleware function
type LoggingMiddleWare ¶
type LoggingMiddleWare struct { }
LoggingMiddleWare is used to depict a request logger
func (*LoggingMiddleWare) ServeHTTP ¶
func (lm *LoggingMiddleWare) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
ServeHTTP implements the negroni middleware function
Click to show internal directories.
Click to hide internal directories.