MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / writeRawJSON

Method writeRawJSON

rest/handler.go:1566–1568  ·  view source on GitHub ↗

writeRawJSON writes the given bytes as a JSON response with a 200 OK status.

(b []byte)

Source from the content-addressed store, hash-verified

1564
1565// writeRawJSON writes the given bytes as a JSON response with a 200 OK status.
1566func (h *handler) writeRawJSON(b []byte) {
1567 h.writeRawJSONStatus(http.StatusOK, b)
1568}
1569
1570// writeRawJSONStatus writes the given bytes as a JSON response.
1571// If status is nonzero, the header will be written with that status.

Callers 15

handleGetCompactMethod · 0.95
handleCompactMethod · 0.95
handleGetResyncMethod · 0.95
handlePostResyncMethod · 0.95
handleGetIndexInitMethod · 0.95
handlePostIndexInitMethod · 0.95
handleDeleteDBMethod · 0.95
handleGetRawDocMethod · 0.95
getUserInfoMethod · 0.95
getRoleInfoMethod · 0.95

Calls 1

writeRawJSONStatusMethod · 0.95

Tested by

no test coverage detected