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

Method SetContentEncoding

header.go:314–316  ·  view source on GitHub ↗

SetContentEncoding sets Content-Encoding header value.

(contentEncoding string)

Source from the content-addressed store, hash-verified

312
313// SetContentEncoding sets Content-Encoding header value.
314func (h *ResponseHeader) SetContentEncoding(contentEncoding string) {
315 h.contentEncoding = initHeaderValueString(h.contentEncoding, contentEncoding)
316}
317
318// SetContentEncodingBytes sets Content-Encoding header value.
319func (h *ResponseHeader) SetContentEncodingBytes(contentEncoding []byte) {

Callers

nothing calls this directly

Calls 1

initHeaderValueStringFunction · 0.85

Tested by

no test coverage detected