ServeHTTP implements http.Handler.
(w http.ResponseWriter, req *http.Request)
| 123 | |
| 124 | // ServeHTTP implements http.Handler. |
| 125 | func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) { |
| 126 | r.rtr.ServeHTTP(w, req) |
| 127 | } |
| 128 | |
| 129 | // FileServe returns a new http.HandlerFunc that serves files from dir. |
| 130 | // Using routes must provide the *filepath parameter. |
no outgoing calls