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

Method SetContentEncoding

header.go:364–366  ·  view source on GitHub ↗

SetContentEncoding sets Content-Encoding header value.

(contentEncoding string)

Source from the content-addressed store, hash-verified

362
363// SetContentEncoding sets Content-Encoding header value.
364func (h *RequestHeader) SetContentEncoding(contentEncoding string) {
365 h.SetBytesK(strContentEncoding, contentEncoding)
366}
367
368// SetContentEncodingBytes sets Content-Encoding header value.
369func (h *RequestHeader) SetContentEncodingBytes(contentEncoding []byte) {

Calls 1

SetBytesKMethod · 0.95