Query registers a new QUERY route.
(path string, h http.HandlerFunc)
| 121 | |
| 122 | // Query registers a new QUERY route. |
| 123 | func (r *Router) Query(path string, h http.HandlerFunc) { |
| 124 | r.rtr.Handle(MethodQuery, r.prefix+path, r.handle(path, h)) |
| 125 | } |
| 126 | |
| 127 | // Redirect takes an absolute path and sends an internal HTTP redirect for it, |
| 128 | // prefixed by the router's path prefix. Note that this method does not include |