自定义媒体类型(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> 内渲染。

用于显示的自定义媒体类型列表#