Documentation
¶
Index ¶
- type HttpHandler
- func (mux *HttpHandler) DELETE(r string, h http.HandlerFunc)
- func (mux *HttpHandler) GET(r string, h http.HandlerFunc)
- func (mux *HttpHandler) HandleFunc(r string, h http.HandlerFunc)
- func (mux *HttpHandler) OPTIONS(r string, h http.HandlerFunc)
- func (mux *HttpHandler) POST(r string, h http.HandlerFunc)
- func (mux *HttpHandler) PUT(r string, h http.HandlerFunc)
- func (mux *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type RouteEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHandler ¶
type HttpHandler struct {
// contains filtered or unexported fields
}
HttpHandler As per https://go.dev/blog/maps, map order is not guaranteed to be the same. (This is a language decision) A sorted slice of string keys in the handler is used to match routes from the most to the least specific pattern.
func NewHandler ¶
func NewHandler() *HttpHandler
func (*HttpHandler) DELETE ¶
func (mux *HttpHandler) DELETE(r string, h http.HandlerFunc)
func (*HttpHandler) GET ¶
func (mux *HttpHandler) GET(r string, h http.HandlerFunc)
func (*HttpHandler) HandleFunc ¶
func (mux *HttpHandler) HandleFunc(r string, h http.HandlerFunc)
func (*HttpHandler) OPTIONS ¶
func (mux *HttpHandler) OPTIONS(r string, h http.HandlerFunc)
func (*HttpHandler) POST ¶
func (mux *HttpHandler) POST(r string, h http.HandlerFunc)
func (*HttpHandler) PUT ¶
func (mux *HttpHandler) PUT(r string, h http.HandlerFunc)
func (*HttpHandler) ServeHTTP ¶
func (mux *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RouteEntry ¶
type RouteEntry struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.