Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MethodOverrider ¶
type MethodOverrider struct {
// contains filtered or unexported fields
}
MethodOverrider is a http.Handler for gin engine that supports method overriding
func NewMethodOverrider ¶
func NewMethodOverrider(handler http.Handler) MethodOverrider
NewMethodOverrider creates a new http.Handler
func (MethodOverrider) ServeHTTP ¶
func (m MethodOverrider) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements an interface of http.Handler. See https://golang.org/pkg/net/http/#Handler
Click to show internal directories.
Click to hide internal directories.