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

Method disableResponseCompression

rest/handler.go:1508–1513  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1506}
1507
1508func (h *handler) disableResponseCompression() {
1509 switch r := h.response.(type) {
1510 case *EncodedResponseWriter:
1511 r.disableCompression()
1512 }
1513}
1514
1515// Do not call from HTTP handlers. Use h.writeRawJSON/h.writeRawJSONStatus instead.
1516// writeRawJSONWithoutClientVerification takes the given bytes and always writes the response as JSON,

Callers 2

writeStatusMethod · 0.95

Calls 1

disableCompressionMethod · 0.80

Tested by

no test coverage detected