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

Method ContentEncoding

header.go:359–361  ·  view source on GitHub ↗

ContentEncoding returns Content-Encoding header value.

()

Source from the content-addressed store, hash-verified

357
358// ContentEncoding returns Content-Encoding header value.
359func (h *RequestHeader) ContentEncoding() []byte {
360 return peekArgBytes(h.h, strContentEncoding)
361}
362
363// SetContentEncoding sets Content-Encoding header value.
364func (h *RequestHeader) SetContentEncoding(contentEncoding string) {

Callers 15

verifyResponseHeaderFunction · 0.45
TestFSServeFileHeadFunction · 0.45
testFSFSCompressFunction · 0.45
TestDirFSServeFileHeadFunction · 0.45
brotliBodyMethod · 0.45
gzipBodyMethod · 0.45
deflateBodyMethod · 0.45

Calls 1

peekArgBytesFunction · 0.85

Tested by 15

verifyResponseHeaderFunction · 0.36
TestFSServeFileHeadFunction · 0.36
testFSFSCompressFunction · 0.36
TestDirFSServeFileHeadFunction · 0.36
TestCompressHandlerFunction · 0.36
TestCompressHandlerVaryFunction · 0.36
TestServeFileHeadFunction · 0.36
TestServeFileCompressedFunction · 0.36