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

Method ContentType

header.go:351–356  ·  view source on GitHub ↗

ContentType returns Content-Type header value.

()

Source from the content-addressed store, hash-verified

349
350// ContentType returns Content-Type header value.
351func (h *RequestHeader) ContentType() []byte {
352 if h.disableSpecialHeader {
353 return peekArgBytes(h.h, []byte(HeaderContentType))
354 }
355 return h.contentType
356}
357
358// ContentEncoding returns Content-Encoding header value.
359func (h *RequestHeader) ContentEncoding() []byte {

Callers 15

MultipartFormBoundaryMethod · 0.95
AllMethod · 0.95
peekMethod · 0.95
peekAllMethod · 0.95
AppendBytesMethod · 0.95
verifyResponseHeaderFunction · 0.45
parsePostArgsMethod · 0.45
TestServerWriteFastErrorFunction · 0.45

Calls 1

peekArgBytesFunction · 0.85