-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a common reference to popular mime types
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/** | ||
* The MIT License | ||
* | ||
* Copyright for portions of unirest-java are held by Kong Inc (c) 2013. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining | ||
* a copy of this software and associated documentation files (the | ||
* "Software"), to deal in the Software without restriction, including | ||
* without limitation the rights to use, copy, modify, merge, publish, | ||
* distribute, sublicense, and/or sell copies of the Software, and to | ||
* permit persons to whom the Software is furnished to do so, subject to | ||
* the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be | ||
* included in all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
package kong.unirest; | ||
|
||
/** | ||
* A non-exclusive list of the most popular mime content types | ||
*/ | ||
public class MimeTypes { | ||
public static final String CSS = "text/css"; | ||
public static final String PS = "application/postscript"; | ||
public static final String SWF = "application/x-shockwave-flash"; | ||
public static final String BMP = "image/bmp"; | ||
public static final String EOT = "application/vnd.ms-fontobject"; | ||
public static final String HQX = "application/mac-binhex40"; | ||
public static final String OGG = "audio/vorbis,application/ogg"; | ||
public static final String MIDI = "audio/x-midi"; | ||
public static final String EXE = "application/octet-stream"; | ||
public static final String ICO = "image/x-icon"; | ||
public static final String XML = "application/xml"; | ||
public static final String SLDX = "application/vnd.openxmlformats-officedocument.presentationml.slide"; | ||
public static final String XLAM = "application/vnd.ms-excel.addin.macroEnabled.12"; | ||
public static final String HTML = "text/html"; | ||
public static final String JAR = "application/java-archive"; | ||
public static final String RAM = "audio/x-pn-realaudio,audio/vnd.rn-realaudio"; | ||
public static final String OTF = "application/font-otf"; | ||
public static final String ZIP = "application/zip,application/x-compressed-zip"; | ||
public static final String RAR = "application/x-rar-compressed"; | ||
public static final String QT = "video/quicktime"; | ||
public static final String PNG = "image/png"; | ||
public static final String ES = "application/ecmascript"; | ||
public static final String RA = "audio/x-pn-realaudio,audio/vnd.rn-realaudio"; | ||
public static final String WOFF = "application/font-woff"; | ||
public static final String PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation"; | ||
public static final String AU = "audio/basic"; | ||
public static final String MPEG = "video/mpeg"; | ||
public static final String DOC = "application/msword"; | ||
public static final String XLTX = "application/vnd.openxmlformats-officedocument.spreadsheetml.template"; | ||
public static final String TIFF = "image/tiff"; | ||
public static final String GIF = "image/gif"; | ||
public static final String SGML = "text/sgml"; | ||
public static final String JS = "application/javascript"; | ||
public static final String PPSX = "application/vnd.openxmlformats-officedocument.presentationml.slideshow"; | ||
public static final String AVI = "video/msvideo,video/avi,video/x-msvideo"; | ||
public static final String DTD = "application/xml-dtd"; | ||
public static final String TSV = "text/tab-separated-values"; | ||
public static final String JSON = "application/json"; | ||
public static final String WOF2 = "application/font-woff2"; | ||
public static final String BZ2 = "application/x-bzip2"; | ||
public static final String SIT = "application/x-stuffit"; | ||
public static final String DOTX = "application/vnd.openxmlformats-officedocument.wordprocessingml.template"; | ||
public static final String HTM = "text/html"; | ||
public static final String JPG = "image/jpeg"; | ||
public static final String XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; | ||
public static final String RTF = "application/rtf"; | ||
public static final String SVG = "image/svg+xml"; | ||
public static final String TGZ = "application/x-tar"; | ||
public static final String TTF = "application/font-ttf"; | ||
public static final String WAV = "audio/wav,audio/x-wav"; | ||
public static final String DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; | ||
public static final String MP3 = "audio/mpeg"; | ||
public static final String TXT = "text/plain"; | ||
public static final String GZ = "application/x-gzip"; | ||
public static final String PDF = "application/pdf"; | ||
public static final String PPT = "application/vnd.ms-powerpointtd"; | ||
public static final String RDF = "application/rdf,application/rdf+xml"; | ||
public static final String MJS = "application/javascript"; | ||
public static final String POTX = "application/vnd.openxmlformats-officedocument.presentationml.template"; | ||
public static final String XLSB = "application/vnd.ms-excel.sheet.binary.macroEnabled.12"; | ||
public static final String PL = "application/x-perl"; | ||
public static final String XLS = "application/vnd.ms-excel"; | ||
} |