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

Method SetContentTypeBytes

server.go:1031–1033  ·  view source on GitHub ↗

SetContentTypeBytes sets response Content-Type. It is safe modifying contentType buffer after function return.

(contentType []byte)

Source from the content-addressed store, hash-verified

1029//
1030// It is safe modifying contentType buffer after function return.
1031func (ctx *RequestCtx) SetContentTypeBytes(contentType []byte) {
1032 ctx.Response.Header.SetContentTypeBytes(contentType)
1033}
1034
1035// RequestURI returns RequestURI.
1036//

Callers 1

ErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected