HTTP消息報文之實體報文
實體字段可以存在請求和響應報文中,針對實體內部進行描述。用於表示請求和響應正文的屬性,包括介質類型、長度、壓縮方法、最後一次修改時間等。
Content-Type
用於表示實體內容的介質類型。
Content-Type: text/html; charset=UTF-8
Content-Type: image/jpeg
Content-Type: application/json
Content-Encoding
用於表示實體內容的編碼方式。
Content-Encoding: gzip
Content-Length
用於表示實體內容的長度。
Content-Length: 387
Content-Language
用於表示實體內容的語言。
Content-Location
代替對應資源的URI。
Content-MD5
用於表示實體內容的報文摘要。
Content-Range
用於表示實體內容的位置範圍。
Last-Modified
用於表示實體內容的最後修改時間。
Last-Modified: Tue, 12 Dec 2017 04:05:13 GMT
Expires
用於表示實體內容的過期時間。
Expires: Thu, 21 Jan 2021 07:25:34 GMT
Expires: 0