📜  是否需要内容长度标头 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:11.232000             🧑  作者: Mango

代码示例1
the server can indicate the length of a response containing
an entity body by

    - sending a Content-Length header, or
    - closing the connection when the entire response has been sent.

so when no Content-Length is received, the client keeps reading until
the server closes the connection