知识卡片
HTTP消息的分界
HTTP/1.1 消息先写起始行和字段,再用空行结束字段区。带固定长度正文时,Content-Length 按字节计数,Content-Type 告知如何解码。手写时可用空行定位请求头哪里结束,长度还需按实际编码核算。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Getting set up to make API requests 2.7 HTTP for the brave · 查看原书依据
❸ A blank line separates the headers from the body section.
参考来源
- 位置:《Designing APIs with Swagger and OpenAPI》第02章《Getting set up to make API requests》(来源项目 book-source:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch02.htm,阅读块 138)
- 结论依据:原文在手写请求示例中指出空行以及长度字段的职责。
- 原始内容:❸ A blank line separates the headers from the body section.