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

Method writeText

rest/handler.go:1583–1585  ·  view source on GitHub ↗

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

(value []byte)

Source from the content-addressed store, hash-verified

1581
1582// writeRawJSON writes the given bytes as a plaintext response with a 200 OK status.
1583func (h *handler) writeText(value []byte) {
1584 h.writeTextStatus(http.StatusOK, value)
1585}
1586
1587// writeTextStatus writes the given bytes as a plaintext response.
1588// If status is nonzero, the header will be written with that status.

Callers 1

handleGetRevTreeMethod · 0.95

Calls 1

writeTextStatusMethod · 0.95

Tested by

no test coverage detected