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

Method SetNoDefaultContentType

header.go:968–970  ·  view source on GitHub ↗

SetNoDefaultContentType allows you to control if a default Content-Type header will be set (false) or not (true).

(noDefaultContentType bool)

Source from the content-addressed store, hash-verified

966
967// SetNoDefaultContentType allows you to control if a default Content-Type header will be set (false) or not (true).
968func (h *header) SetNoDefaultContentType(noDefaultContentType bool) {
969 h.noDefaultContentType = noDefaultContentType
970}
971
972// Reset clears response header.
973func (h *ResponseHeader) Reset() {

Callers 5

ResetMethod · 0.80
ResetMethod · 0.80

Calls

no outgoing calls