Entity header - MDN Web Docs Glossary: Definitions of Web-related terms 编辑
The current HTTP/1.1 specification no longer refers to entities, entity headers or entity-body. Some of the fields are new referred to as representation header fields (RFC 7231, section 3: Representations).
An entity header is an HTTP header that describes the payload of an HTTP message (i.e. metadata about the message body). Entity headers include: Content-Length
, Content-Language
, Content-Encoding
, Content-Type
, Expires
, etc. Entity headers may be present in both HTTP request and response messages.
In the following example, Content-Length
is an entity header, while Host
and User-Agent
are requests headers:
POST /myform.html HTTP/1.1 Host: developer.mozilla.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 Content-Length: 128
Learn more
Technical knowledge
- List of all HTTP headers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论