首部字段的分类
HTTP首部字段根据实际情况可以分为以下四种:
- 通用类型首部。请求报文和响应报文都会使用到的首部。
- 请求首部字段。从客户端向服务端请求报文的时候使用的首部。补充了请求的附加内容、客户端信息、响应客户端内容优先级等信息。
- 响应首部字段。
- 实体首部字段。针对请求报文和响应报文中的实体部分使用的首部。补充了资源内容更新时间等与实体相关的信息。
HTTP/1.1首部字段一览
通用首部字段

请求首部字段

响应首部字段


实体首部字段

HTTP首部字段根据实际情况可以分为以下四种:
通用首部字段
请求首部字段
响应首部字段
实体首部字段
本文标题:《图解HTTP》——HTTP首部
本文链接:https://www.haomeiwen.com/subject/pzsdpftx.html
网友评论