writeSuccessResponseJSON writes success headers and response if any, with content-type set to `application/json`.
(w http.ResponseWriter, response []byte)
| 832 | // writeSuccessResponseJSON writes success headers and response if any, |
| 833 | // with content-type set to `application/json`. |
| 834 | func writeSuccessResponseJSON(w http.ResponseWriter, response []byte) { |
| 835 | writeResponse(w, http.StatusOK, response, mimeJSON) |
| 836 | } |
| 837 | |
| 838 | // writeSuccessResponseXML writes success headers and response if any, |
| 839 | // with content-type set to `application/xml`. |
no test coverage detected