Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultMaxBodySize = 32 * 1024 // 32 Ko
)
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func InternalServerError ¶
func StatusError ¶
Types ¶
type HandlerFunc ¶
type Manager ¶
type Manager interface { Router Logger() *logger.Logger Mux() Router JSON(fn HandlerFunc) http.HandlerFunc XML(fn HandlerFunc) http.HandlerFunc YAML(fn HandlerFunc) http.HandlerFunc }
type Router ¶
type Router interface { Connect(pattern string, fn http.HandlerFunc) Delete(pattern string, fn http.HandlerFunc) Get(pattern string, fn http.HandlerFunc) Head(pattern string, fn http.HandlerFunc) Options(pattern string, fn http.HandlerFunc) Patch(pattern string, fn http.HandlerFunc) Post(pattern string, fn http.HandlerFunc) Put(pattern string, fn http.HandlerFunc) Trace(pattern string, fn http.HandlerFunc) Mount(pattern string, handler http.Handler) Use(middlewares ...func(http.Handler) http.Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.