What exactly is an HTTP Entity?

后端 未结 10 709
盖世英雄少女心
盖世英雄少女心 2020-11-29 16:31

Would someone please describe to me what exactly an HTTP entity is?

I am reading the HTTPClient documentation, but I do not really understand what t

10条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 17:18

    Among the good answers that we have here, I believe that is worth to mention something that comes directly from the RFC 2616 (Hypertext Transfer Protocol - HTTP/1.1):

    Entity

    Request and Response messages MAY transfer an entity if not otherwise restricted by the request method or response status code. An entity consists of entity-header fields and an entity-body, although some responses will only include the entity-headers.

    In a a nutshell: an Entity may be transferred, and it can be the header + body, or just the header.

    Since that there's the link above, I detain myself on making additional comments.

提交回复
热议问题