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

Method SetContentEncodingBytes

header.go:369–372  ·  view source on GitHub ↗

SetContentEncodingBytes sets Content-Encoding header value.

(contentEncoding []byte)

Source from the content-addressed store, hash-verified

367
368// SetContentEncodingBytes sets Content-Encoding header value.
369func (h *RequestHeader) SetContentEncodingBytes(contentEncoding []byte) {
370 h.bufV = initHeaderValueBytes(h.bufV, contentEncoding)
371 h.setNonSpecial(strContentEncoding, h.bufV)
372}
373
374// SetMultipartFormBoundary sets the following Content-Type:
375// 'multipart/form-data; boundary=...'

Callers 5

brotliBodyMethod · 0.45
gzipBodyMethod · 0.45
deflateBodyMethod · 0.45
zstdBodyMethod · 0.45
handleRequestMethod · 0.45

Calls 2

initHeaderValueBytesFunction · 0.85
setNonSpecialMethod · 0.80

Tested by

no test coverage detected