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

Method Close

rest/encoded_response_writer.go:149–154  ·  view source on GitHub ↗

The writer should be closed when output is complete, to flush the GZip encoder buffer.

()

Source from the content-addressed store, hash-verified

147
148// The writer should be closed when output is complete, to flush the GZip encoder buffer.
149func (w *EncodedResponseWriter) Close() {
150 if w.gz != nil {
151 ReturnGZipWriter(w.gz)
152 w.gz = nil
153 }
154}
155
156// isHijackable is always false since we won't create a NewEncodedResponseWriter if the request contains the Upgrade header.
157func (w *EncodedResponseWriter) isHijackable() bool {

Callers 1

invokeMethod · 0.95

Calls 1

ReturnGZipWriterFunction · 0.85

Tested by

no test coverage detected