Get adds the route `pattern` that matches a GET http method to execute the `handlerFn` http.HandlerFunc.
(pattern string, handlerFn http.HandlerFunc)
| 153 | // Get adds the route `pattern` that matches a GET http method to |
| 154 | // execute the `handlerFn` http.HandlerFunc. |
| 155 | func (mx *Mux) Get(pattern string, handlerFn http.HandlerFunc) { |
| 156 | mx.handle(mGET, pattern, handlerFn) |
| 157 | } |
| 158 | |
| 159 | // Head adds the route `pattern` that matches a HEAD http method to |
| 160 | // execute the `handlerFn` http.HandlerFunc. |