MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / writeSuccessResponseJSON

Function writeSuccessResponseJSON

cmd/api-response.go:834–836  ·  view source on GitHub ↗

writeSuccessResponseJSON writes success headers and response if any, with content-type set to `application/json`.

(w http.ResponseWriter, response []byte)

Source from the content-addressed store, hash-verified

832// writeSuccessResponseJSON writes success headers and response if any,
833// with content-type set to `application/json`.
834func 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`.

Callers 15

KMSStatusHandlerMethod · 0.85
KMSMetricsHandlerMethod · 0.85
KMSAPIsHandlerMethod · 0.85
KMSVersionHandlerMethod · 0.85
KMSListKeysHandlerMethod · 0.85
KMSKeyStatusHandlerMethod · 0.85
KMSGetPolicyHandlerMethod · 0.85

Calls 1

writeResponseFunction · 0.85

Tested by

no test coverage detected