UpdateInfo implements the CUPS update-info handler.
(w http.ResponseWriter, r *http.Request)
| 146 | |
| 147 | // UpdateInfo implements the CUPS update-info handler. |
| 148 | func (s *Server) UpdateInfo(w http.ResponseWriter, r *http.Request) { |
| 149 | ctx := r.Context() |
| 150 | registerUpdateInfoRequestReceived(ctx, updateInfoRequestLabel) |
| 151 | if err := s.updateInfo(w, r); err != nil { |
| 152 | registerUpdateInfoRequestFailed(ctx, updateInfoRequestLabel, err) |
| 153 | webhandlers.Error(w, r, err) |
| 154 | } else { |
| 155 | registerUpdateInfoRequestSucceeded(ctx, updateInfoRequestLabel) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | var errParse = errors.DefineAborted("parse", "request body parsing") |
| 160 |
nothing calls this directly
no test coverage detected