HandleErrors registers a Handler for any error that doesn't have a specific Handler.
(h Handler)
| 113 | // HandleErrors registers a Handler for any error that doesn't have a specific |
| 114 | // Handler. |
| 115 | func (mux *Mux) HandleErrors(h Handler) { |
| 116 | mux.HandleError(nil, h) |
| 117 | } |
| 118 | |
| 119 | // Response initializes an entry for a Response Handler based on various criteria. |
| 120 | // The Response Handler is not registered until Handle is called. |