load will return the underlying http.Handler used to serve requests.
()
| 32 | |
| 33 | // load will return the underlying http.Handler used to serve requests. |
| 34 | func (ah *AtomicHandler) load() http.Handler { |
| 35 | return ah.val.Load().(*atomicHandlerValue).Handler |
| 36 | } |
| 37 | |
| 38 | // ServeHTTP implements the standard libraries http.Handler interface by |
| 39 | // atomically passing the request along to the most recently stored handler. |
no outgoing calls