ServeHTTP implements http.Handler.
(w http.ResponseWriter, req *http.Request)
| 133 | |
| 134 | // ServeHTTP implements http.Handler. |
| 135 | func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { |
| 136 | r.rtr.ServeHTTP(w, req) |
| 137 | } |
| 138 | |
| 139 | // FileServe returns a new http.HandlerFunc that serves files from dir. |
| 140 | // Using routes must provide the *filepath parameter. |
no outgoing calls