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

Method writeJSON

rest/handler.go:1537–1539  ·  view source on GitHub ↗

writeJSON writes the given value as a JSON response with a 200 OK status.

(value interface{})

Source from the content-addressed store, hash-verified

1535
1536// writeJSON writes the given value as a JSON response with a 200 OK status.
1537func (h *handler) writeJSON(value interface{}) {
1538 h.writeJSONStatus(http.StatusOK, value)
1539}
1540
1541// Writes an object to the response in JSON format.
1542// If status is nonzero, the header will be written with that status.

Callers 15

handleGetDocChannelsMethod · 0.95
handleSyncFnDryRunMethod · 0.95
handleRootMethod · 0.95
handleAllDbsMethod · 0.95
handlePostUpgradeMethod · 0.95
handleGetDBMethod · 0.95
handleStatsMethod · 0.95
handleGetDbConfigMethod · 0.95
handleGetConfigMethod · 0.95
handleGetLoggingMethod · 0.95

Calls 1

writeJSONStatusMethod · 0.95

Tested by

no test coverage detected