MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Mime

Method Mime

imagetype/type.go:21–28  ·  view source on GitHub ↗

Mime returns the MIME type for the image type.

()

Source from the content-addressed store, hash-verified

19
20// Mime returns the MIME type for the image type.
21func (t Type) Mime() string {
22 desc := GetTypeDesc(t)
23 if desc != nil {
24 return desc.Mime
25 }
26
27 return "application/octet-stream"
28}
29
30// String returns the string representation of the image type.
31func (t Type) String() string {

Callers 1

respondWithImageMethod · 0.80

Calls 1

GetTypeDescFunction · 0.85

Tested by

no test coverage detected