Requests body
请求报文的报文体大致上可以分为如下两种:
- Single-resource bodies, consisting of one single file, defined by the two headers:
Content-Type
andContent-Length
. - Multiple-resource bodies, consisting of a multipart body, each containing a different bit of information. This is typically associated with HTML Forms
Response body
并不是所有的响应都有报文体:
responses with a status code, like 201
or 204
, usually don't.
响应报文体大致上可以分为一下三种:
- Single-resource bodies, consisting of a single file of known length, defined by the two headers:
Content-Type
andContent-Length
- Single-resource bodies, consisting of a single file of unknown length, encoded by chunks with
Transfer-Encodingset
tochunked
. - Multiple-resource bodies, consisting of a multipart body, each containing a different section of information. These are relatively rare.
网友评论