美文网首页
HTTP: body

HTTP: body

作者: 庞贝船长 | 来源:发表于2019-01-07 20:56 被阅读0次

    Requests body

    请求报文的报文体大致上可以分为如下两种:

    • Single-resource bodies, consisting of one single file, defined by the two headers: Content-Typeand Content-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 201or 204, usually don't.

    响应报文体大致上可以分为一下三种:

    • Single-resource bodies, consisting of a single file of known length, defined by the two headers: Content-Type and Content-Length
    • Single-resource bodies, consisting of a single file of unknown length, encoded by chunks with Transfer-Encodingset to chunked.
    • Multiple-resource bodies, consisting of a multipart body, each containing a different section of information. These are relatively rare.

    参考

    相关文章

      网友评论

          本文标题:HTTP: body

          本文链接:https://www.haomeiwen.com/subject/yqbprqtx.html