ServeHTTP implements the standard libraries http.Handler interface by atomically passing the request along to the most recently stored handler.
(w http.ResponseWriter, r *http.Request)
| 38 | // ServeHTTP implements the standard libraries http.Handler interface by |
| 39 | // atomically passing the request along to the most recently stored handler. |
| 40 | func (ah *AtomicHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 41 | ah.load().ServeHTTP(w, r) |
| 42 | } |