func net/http.DetectContentType
8 uses
net/http (current package)
fs.go#L240: ctype = DetectContentType(buf[:n])
h2_bundle.go#L5997: ctype = DetectContentType(p)
server.go#L1409: setHeader.contentType = DetectContentType(p)
sniff.go#L21: func DetectContentType(data []byte) string {
net/http/httptest
recorder.go#L99: m.Set("Content-Type", http.DetectContentType(b))
github.com/evanw/esbuild/internal/bundler
bundler.go#L511: mimeType = http.DetectContentType([]byte(contents))
golang.org/x/net/http2
server.go#L2442: ctype = http.DetectContentType(p)
google.golang.org/api/internal/gensupport
media.go#L72: cs.ctype = http.DetectContentType(cs.start)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |