Documentation
¶
Index ¶
- type Middleware
- type Mux
- func (m *Mux) DELETE(path string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) GET(path string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) HEAD(path string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) Handle(pattern string, handler http.Handler)
- func (m *Mux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) HandleFuncMethod(method, pattern string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) OPTIONS(path string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) PATCH(path string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) POST(path string, handler func(http.ResponseWriter, *http.Request))
- func (m *Mux) PUT(path string, handler func(http.ResponseWriter, *http.Request))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mux ¶
func NewServeMux ¶
func NewServeMux(mws ...Middleware) *Mux
func (*Mux) HandleFunc ¶
func (*Mux) HandleFuncMethod ¶
Click to show internal directories.
Click to hide internal directories.