自定义媒体类型(MIME 类型)#
什么是媒体类型?#
当发生互联网请求和响应时,会传递一个 Content-Type
标头。媒体类型,也称为 MIME 类型,根据类型标识返回的内容应如何由应用程序和浏览器处理或使用。MIME 类型由 MIME 组(即 application、image、audio 等)和 MIME 子类型组成。例如,MIME 类型是 image/png
,其中 MIME 组是 image
,子类型是 png
。
由于类型可能包含特定于供应商的项目,因此可以使用自定义的特定于供应商的 MIME 类型 vnd
。特定于供应商的 MIME 类型将包含 vnd
,例如 application/vnd.jupyter.cells
。
Jupyter 和 IPython 项目中使用的自定义媒体类型#
application/vnd.jupyter
application/vnd.jupyter.cells
nbdime 使用的
application/vnd.jupyter.dragindex
用于笔记本的
application/x-ipynb+json
text/html
元数据
isolated: boolean
– HTML 应在<iframe>
内渲染。
用于显示的自定义媒体类型列表#
application/vnd.geo+json
- GeoJSON 规范application/vnd.geo+json
现已弃用,并由application/geo+json
取代application/geo+json
- 首选 GeoJSON 规范application/vnd.plotly.v1+json
- Plotly JSON 模式application/vdom.v1+json
- 虚拟 DOM 规范