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

Method writeJavascript

rest/handler.go:1593–1595  ·  view source on GitHub ↗
(js string)

Source from the content-addressed store, hash-verified

1591}
1592
1593func (h *handler) writeJavascript(js string) {
1594 h.writeWithMimetypeStatus(http.StatusOK, []byte(js), "application/javascript")
1595}
1596
1597// writeTextStatus writes the given bytes as a plaintext response.
1598// If status is nonzero, the header will be written with that status.

Calls 1

Tested by

no test coverage detected