Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotFoundHandler = http.NotFound MethodNotAllowedHandler = MethodNotAllowed )
Functions ¶
func MethodNotAllowed ¶
func MethodNotAllowed(w http.ResponseWriter, r *http.Request)
Types ¶
type MethodHandler ¶
func (MethodHandler) ServeHTTP ¶
func (m MethodHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type MethodServeMux ¶
type MethodServeMux struct {
// contains filtered or unexported fields
}
func NewMethodServeMux ¶
func NewMethodServeMux() *MethodServeMux
func (*MethodServeMux) Handle ¶
func (mux *MethodServeMux) Handle(method, pattern string, handler http.Handler)
func (*MethodServeMux) HandleFunc ¶
func (mux *MethodServeMux) HandleFunc(method, pattern string, handler func(w http.ResponseWriter, r *http.Request))
func (*MethodServeMux) ServeHTTP ¶
func (mux *MethodServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ServeMux ¶
type ServeMux struct {
// contains filtered or unexported fields
}
ServeMux is a http.ServeMux like library,but support path variable for method match, see MethodServerMux
func NewServeMux ¶
func NewServeMux() *ServeMux
func (*ServeMux) HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.