msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Beast Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-07-24 20:09+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese (Simplified Han script) <https://"
"insights.cppalliance.org/weblate/projects/boost-beast-documentation-zh_Hans/"
"doc-qbk-07-concepts-body-qbk/zh_Hans/>\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 2026.5\n"

#. type: section title
#: 10
msgid "Body"
msgstr "消息体"

#. type: paragraph
#: 12
msgid ""
"A [*Body] type is supplied as a template argument to the __message__ class. "
"It controls both the type of the data member of the resulting message "
"object, and the algorithms used during parsing and serialization."
msgstr ""
"[*Body] 类型作为模板参数传递给 __message__ 类。它决定结果消息对象中数据成员的"
"类型，以及解析和序列化所用算法。"

#. type: heading
#: 16
msgid "Associated Types"
msgstr "关联类型"

#. type: list
#: 18
msgid ""
"* [link beast.ref.boost__beast__http__is_body `is_body`]\n"
"* __BodyReader__\n"
"* __BodyWriter__"
msgstr ""
"* [link beast.ref.boost__beast__http__is_body `is_body`]\n"
"* __BodyReader__\n"
"* __BodyWriter__"

#. type: heading
#: 22
msgid "Requirements"
msgstr "要求"

#. type: paragraph
#: 24
msgid "In this table:"
msgstr "在下表中："

#. type: list
#: 26
msgid ""
"* `B` is a type meeting the requirements of [*Body].\n"
"* `m` is a value of type `message<b,B,F>` where `b` is a `bool` value"
msgstr ""
"* `B` 是一个满足 [*Body] 要求的类型。\n"
"* `m` 是类型为 `message<b,B,F>` 的值，其中 `b` 为 `bool` 类型的值。"

#. type: table title
#: 30
msgid "Valid expressions"
msgstr "有效表达式"

#. type: table cell
#: 30
msgid "Expression"
msgstr "表达式"

#. type: table cell
#: 30
msgid "Type"
msgstr "类型"

#. type: table cell
#: 30
msgid "Semantics, Pre/Post-conditions"
msgstr "语义、前置条件与后置条件"

#. type: table cell
#: 30
msgid "`B::value_type`"
msgstr "`B::value_type`"

#. type: table cell
#: 30
msgid ""
"The return type of the `message::body` member function. If this is not "
"movable or not copyable, the containing message will be not movable or not "
"copyable."
msgstr ""
"`message::body` 成员函数返回的类型。如果该类型不支持移动或复制，则包含它的消"
"息对象同样不支持移动或复制。"

#. type: table cell
#: 30
msgid "`B::reader`"
msgstr "`B::reader`"

#. type: table cell
#: 30
msgid ""
"If present, indicates that the body can be parsed. The type must meet the "
"requirements of __BodyReader__. The implementation constructs an object of "
"this type to obtain buffers into which parsed body octets are placed."
msgstr ""
"若该类型存在，则表示消息体可被解析。该类型必须满足 __BodyReader__ 的要求。实"
"现会构造该类型的对象，用于获取存放已解析消息体八位字节的缓冲区。"

#. type: table cell
#: 30
msgid "`B::writer`"
msgstr "`B::writer`"

#. type: table cell
#: 30
msgid ""
"If present, indicates that the body is serializable. The type must meet the "
"requirements of __BodyWriter__. The implementation constructs an object of "
"this type to obtain buffers representing the message body for serialization."
msgstr ""
"若存在该类型，则用于表示该主体可序列化。该类型必须满足 __BodyWriter__ 的要求"
"。该实现用于构造该类型的对象，以获取用于表示消息主体序列化内容的缓冲区。"

#. type: table code
#: 30
msgid ""
"B::size(\n"
"B::value_type body)"
msgstr ""
"B::size(\n"
"B::value_type body)"

#. type: table cell
#: 30
msgid "`std::uint64_t`"
msgstr "`std::uint64_t`"

#. type: table cell
#: 30
msgid ""
"This static member function is optional. It returns the payload size of "
"`body` in bytes not including any chunked transfer encoding. The return "
"value may be zero, to indicate that the message is known to have no payload. "
"The function shall not exit via an exception.\n"
"\n"
"When this function is present:\n"
"\n"
"* The function shall not fail\n"
"\n"
"* A call to [link beast.ref.boost__beast__http__message.payload_size "
"`message::payload_size`] will return the same value as `size`.\n"
"\n"
"* A call to [link beast.ref.boost__beast__http__message.prepare_payload "
"`message::prepare_payload`] will remove \"chunked\" from the Transfer-"
"Encoding field if it appears as the last encoding, and will set the Content-"
"Length field to the returned value.\n"
"\n"
"Otherwise, when the function is omitted:\n"
"\n"
"* A call to [link beast.ref.boost__beast__http__message.payload_size "
"`message::payload_size`] will return `boost::none`.\n"
"\n"
"* A call to [link beast.ref.boost__beast__http__message.prepare_payload "
"`message::prepare_payload`] will erase the Content-Length field, and add "
"\"chunked\" as the last encoding in the Transfer-Encoding field if it is not "
"already present."
msgstr ""
"该静态成员函数为可选。它返回消息体的大小（以字节为单位），不包含任何分块传输"
"编码。返回值可能为零，表示已知消息不包含有效载荷。该函数不应通过异常退出。\n"
"\n"
"当该函数存在时：\n"
"\n"
"* 函数不应失败。\n"
"* 调用 [link beast.ref.boost__beast__http__message.payload_size "
"`message::payload_size`] 将返回与 `size` 相同的值。\n"
"* 调用 [link beast.ref.boost__beast__http__message.prepare_payload "
"`message::prepare_payload`] 将移除 Transfer-Encoding 字段中的 \"chunked\"（如"
"果它作为最后一个编码出现），并将 Content-Length 字段设置为返回的值。\n"
"\n"
"否则，当该函数省略时：\n"
"\n"
"* 调用 [link beast.ref.boost__beast__http__message.payload_size "
"`message::payload_size`] 将返回 `boost::none`。\n"
"* 调用 [link beast.ref.boost__beast__http__message.prepare_payload "
"`message::prepare_payload`] 将擦除 Content-Length 字段，并在 Transfer-"
"Encoding 字段中添加 \"chunked\" 作为最后一个编码（如果尚未存在）。"

#. type: heading
#: 99
msgid "Exemplar"
msgstr "示例"

#. type: heading
#: 103
msgid "Models"
msgstr "模型"

#. type: list
#: 105
msgid ""
"* [link beast.ref.boost__beast__http__basic_dynamic_body "
"`basic_dynamic_body`]\n"
"* [link beast.ref.boost__beast__http__basic_file_body `basic_file_body`]\n"
"* [link beast.ref.boost__beast__http__basic_string_body "
"`basic_string_body`]\n"
"* [link beast.ref.boost__beast__http__buffer_body `buffer_body`]\n"
"* [link beast.ref.boost__beast__http__empty_body `empty_body`]\n"
"* [link beast.ref.boost__beast__http__span_body `span_body`]\n"
"* [link beast.ref.boost__beast__http__vector_body `vector_body`]"
msgstr ""
"* [link beast.ref.boost__beast__http__basic_dynamic_body "
"`basic_dynamic_body`]\n"
"* [link beast.ref.boost__beast__http__basic_file_body `basic_file_body`]\n"
"* [link beast.ref.boost__beast__http__basic_string_body "
"`basic_string_body`]\n"
"* [link beast.ref.boost__beast__http__buffer_body `buffer_body`]\n"
"* [link beast.ref.boost__beast__http__empty_body `empty_body`]\n"
"* [link beast.ref.boost__beast__http__span_body `span_body`]\n"
"* [link beast.ref.boost__beast__http__vector_body `vector_body`]"
