MIME stands for "Multipurpose Internet Mail Extensions. It's a way of identifying files on the Internet according to their nature and format. For example, using the Content-type header value defined in a HTTP response, the browser can open the file with the proper extension/plugin. (http://www.freeformatter.com/mime-types-list.html)
MIME
01 Syntax
Microsoft.VisualBasic.Net.Protocols.ContentTypes.MIME
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| GetMIMEDescrib | 1 | .txt -> text,这个函数是作用于文件的拓展名之上的 |
| FileMimeType | 1 | 与MIME.GetMIMEDescrib())所不同的是,这个函数是直接作用于文件路径之上的。 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| SuffixTable | 1 | 枚举出所有已知的文件拓展名列表,Key全部都是小写的 (格式: .ext) |
| ContentTypes | 1 | 根据类型来枚举,Key全部都是小写的 |
| UnknownType | 1 | application/octet-stream |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| Unknown | 2 | .*( 二进制流,不知道下载文件类型) |
| MsDownload | 1 | |
| Json | 1 | |
| ZIP | 1 | |
| Png | 1 | |
| Xml | 1 | |
| Html | 1 | |
| Text | 1 | |
| JSONText | 1 | |
| TypeScript | 1 |
05 Members
GetMIMEDescrib(
String, Boolean)*.txt -> text,这个函数是作用于文件的拓展名之上的
Parameters
| Name | Type | Description |
|---|---|---|
ext | String | - |
FileMimeType(
String, Boolean)与MIME.GetMIMEDescrib()所不同的是,这个函数是直接作用于文件路径之上的。
Parameters
| Name | Type | Description |
|---|---|---|
path | String | - |
SuffixTable
枚举出所有已知的文件拓展名列表,Key全部都是小写的 (格式: .ext)
Remarks
recommended use MIME.FileMimeType() to get this mime type data
ContentTypes
根据类型来枚举,Key全部都是小写的
UnknownType
application/octet-stream
Unknown
.*( 二进制流,不知道下载文件类型)
Unknown
MsDownload
Json
ZIP
Png
Xml
Html
Text
JSONText
TypeScript