Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
In this section we describe the problem of modeling HTTP messages and explain how the library arrived at its solution, with a discussion of the benefits and drawbacks of the design choices. The goal for creating a message model is to create a container with value semantics, possibly movable and/or copyable, that contains all the information needed to serialize, or all of the information captured during parsing. More formally, given:在本节中,我们将探讨 HTTP 消息建模所面临的挑战,并阐述该库是如何推导出最终解决方案的,同时也会深入剖析这些设计选择的利弊。构建消息模型的核心目标,是打造一个具备值语义(value semantics)的容器(支持移动和/或复制),使其能够囊括序列化所需的全部信息,或是完整保留解析过程中捕获的所有数据。从更严谨的层面来说,给定: