MCPcopy
hub / github.com/valyala/fasthttp / SetContentEncodingBytes

Method SetContentEncodingBytes

header.go:319–321  ·  view source on GitHub ↗

SetContentEncodingBytes sets Content-Encoding header value.

(contentEncoding []byte)

Source from the content-addressed store, hash-verified

317
318// SetContentEncodingBytes sets Content-Encoding header value.
319func (h *ResponseHeader) SetContentEncodingBytes(contentEncoding []byte) {
320 h.contentEncoding = initHeaderValueBytes(h.contentEncoding, contentEncoding)
321}
322
323// addVaryBytes add value to the 'Vary' header if it's not included.
324func (h *ResponseHeader) addVaryBytes(value []byte) {

Callers 1

setSpecialHeaderMethod · 0.95

Calls 1

initHeaderValueBytesFunction · 0.85

Tested by

no test coverage detected