http 消息格式

  • Request 格式
GET / HTTP/1.1
Host: heng30.space
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6
If-None-Match: "11-1615342559;gz"

在 HTTP/1.1 协议中, 所有的请求头, 除 Host 外, 都是可选的.

  • Response 格式
HTTP/1.1 200 OK
X-Powered-By: PHP/7.4.14
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Link: <http://heng30.space/wp-json/>; rel="https://api.w.org/"
X-LiteSpeed-Cache: hit,private
Date: Wed, 10 Mar 2021 02:16:13 GMT
Server: LiteSpeed
Content-Type: text/html; charset=UTF-8
Etag: "11-1615342559;gz"
Content-Length: 21077
Content-Encoding: gzip
Vary: Accept-Encoding

如果觉得有帮助, 可以扫描右边的微信打赏码支持一下.

Leave a Reply

Your email address will not be published. Required fields are marked *