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

Method SetContentTypeBytes

header.go:304–306  ·  view source on GitHub ↗

SetContentTypeBytes sets Content-Type header value.

(contentType []byte)

Source from the content-addressed store, hash-verified

302
303// SetContentTypeBytes sets Content-Type header value.
304func (h *header) SetContentTypeBytes(contentType []byte) {
305 h.contentType = initHeaderValueBytes(h.contentType, contentType)
306}
307
308// ContentEncoding returns Content-Encoding header value.
309func (h *ResponseHeader) ContentEncoding() []byte {

Calls 1

initHeaderValueBytesFunction · 0.85