github.com/go-playground/pkg/v5@v5.29.1/net/http/mime_types.go (about) 1 package httpext 2 3 const ( 4 charsetUTF8 = "; charset=" + UTF8 5 ) 6 7 // Mime Type values for the Content-Type HTTP header 8 const ( 9 ApplicationJSONNoCharset string = "application/json" 10 ApplicationJSON string = ApplicationJSONNoCharset + charsetUTF8 11 ApplicationJavaScript string = "application/javascript" 12 ApplicationXMLNoCharset string = "application/xml" 13 ApplicationXML string = ApplicationXMLNoCharset + charsetUTF8 14 ApplicationForm string = "application/x-www-form-urlencoded" 15 ApplicationProtobuf string = "application/protobuf" 16 ApplicationMsgpack string = "application/msgpack" 17 ApplicationWasm string = "application/wasm" 18 ApplicationPDF string = "application/pdf" 19 ApplicationOctetStream string = "application/octet-stream" 20 TextHTMLNoCharset = "text/html" 21 TextHTML string = TextHTMLNoCharset + charsetUTF8 22 TextPlainNoCharset = "text/plain" 23 TextPlain string = TextPlainNoCharset + charsetUTF8 24 TextMarkdownNoCharset string = "text/markdown" 25 TextMarkdown string = TextMarkdownNoCharset + charsetUTF8 26 TextCSSNoCharset string = "text/css" 27 TextCSS string = TextCSSNoCharset + charsetUTF8 28 TextCSV string = "text/csv" 29 ImagePNG string = "image/png" 30 ImageGIF string = "image/gif" 31 ImageSVG string = "image/svg+xml" 32 ImageJPEG string = "image/jpeg" 33 MultipartForm string = "multipart/form-data" 34 )