Documentation
¶
Overview ¶
Package mux implements simple regexp based http muxer
Index ¶
- type Mux
- func (m *Mux) Add(method string, pattern string, handler http.Handler)
- func (m *Mux) Del(pattern string, handler http.Handler)
- func (m *Mux) Get(pattern string, handler http.Handler)
- func (m *Mux) Head(pattern string, handler http.Handler)
- func (m *Mux) Options(pattern string, handler http.Handler)
- func (m *Mux) Patch(pattern string, handler http.Handler)
- func (m *Mux) Post(pattern string, handler http.Handler)
- func (m *Mux) Put(pattern string, handler http.Handler)
- func (m *Mux) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mux ¶
Mux is a simple HTTP muxer. All path patterns must be valid go regexp (https://golang.org/pkg/regexp/syntax/).
Click to show internal directories.
Click to hide internal directories.