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

Method setHeader

rest/handler.go:1493–1495  ·  view source on GitHub ↗

RESPONSES:

(name string, value string)

Source from the content-addressed store, hash-verified

1491// ////// RESPONSES:
1492
1493func (h *handler) setHeader(name string, value string) {
1494 h.response.Header().Set(name, value)
1495}
1496
1497// Adds an "Etag" header to the response, whose value is the parameter wrapped in double-quotes.
1498func (h *handler) setEtag(etag string) {

Callers 15

handlePurgeMethod · 0.95
sendSimpleChangesMethod · 0.95
setEtagMethod · 0.95
writeMultipartMethod · 0.95
writeStatusMethod · 0.95
handleRangeMethod · 0.95
handleOIDCChallengeMethod · 0.95
handleGetDocMethod · 0.95

Calls 2

HeaderMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected