lookup> text/plain

text/plain

text/plain 是一种 text 类型媒体(MIME),通常对应 .txt、.text、.conf、.def、.list、.log、.in、.ini 等扩展名。

text可压缩Content-Type
MIME 类型text/plain
扩展名.txt .text .conf .def .list .log
字符集
可压缩
来源iana

text/plain

text/plain 是互联网上使用 text 类媒体类型的标准之一,可安全压缩以减少传输体积。当通过 HTTP 提供该类型内容时,应在响应中设置 Content-Type 头,例如:

Content-Type: text/plain

相关实体:该 MIME 类型关联的扩展名有 .txt.text.conf.def,并通过 Content-Type 响应头(常配合 GET、POST、PUT、PATCH 等请求)。

相关格式:

Plain Text FileTEXT Data & TextConfiguration File
.txt .text .conf以媒体类型提供
mime type
text/plain通过响应头发送
http header

text/plain 通过 HTTP 的 Content-Type 头标识内容类型,并常用于以下请求方法:

text/plain 是什么?

text/plain 是 text 类媒体类型之一,用于标识某种内容格式,服务器通过 Content-Type 头告知客户端。

哪些扩展名使用 text/plain?

.txt, .text, .conf, .def 等扩展名与该 MIME 类型关联。

如何设置 text/plain 的 Content-Type?

在 HTTP 响应中发送 Content-Type: text/plain 即可。

相关扩展名

相关 MIME 类型

相关头

相关方法