msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Beast Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-07 19:42+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-04-http-04-serializer-streams-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
#, fuzzy
msgctxt "10"
msgid "Serializer Stream Operations"
msgstr "Serializer Stream Operations"

#. type: paragraph
#: 12
#, fuzzy
msgid ""
"Non-trivial algorithms need to do more than send entire messages at once, "
"such as:"
msgstr ""
"Non-trivial algorithms need to do more than send entire messages at once, "
"such as:"

#. type: list
#: 15
#, fuzzy
msgid "* Send the header first, and the body later."
msgstr "* Send the header first, and the body later."

#. type: list
#: 17
#, fuzzy
msgid "* Send a message incrementally: bounded work in each I/O cycle."
msgstr "* Send a message incrementally: bounded work in each I/O cycle."

#. type: list
#: 19
#, fuzzy
msgid "* Use a series of caller-provided buffers to represent the body."
msgstr "* Use a series of caller-provided buffers to represent the body."

#. type: paragraph
#: 21
#, fuzzy
msgid ""
"These tasks may be performed by using the serializer stream interfaces. To "
"use these interfaces, first construct an appropriate serializer from the "
"message to be sent:"
msgstr ""
"These tasks may be performed by using the serializer stream interfaces. To "
"use these interfaces, first construct an appropriate serializer from the "
"message to be sent:"

#. type: table title
#: 25
#, fuzzy
msgid "Serializer"
msgstr "Serializer"

#. type: table cell
#: 25
#, fuzzy
msgctxt "25"
msgid "Name"
msgstr "Name"

#. type: table cell
#: 25
#, fuzzy
msgctxt "25"
msgid "Description"
msgstr "Description"

#. type: table cell
#: 25
#, fuzzy
msgid "__serializer__"
msgstr "__serializer__"

#. type: table code
#: 25
#, fuzzy
msgid ""
"/// Provides buffer oriented HTTP message serialization functionality.\n"
"template<\n"
"bool isRequest,\n"
"class Body,\n"
"class Fields = fields\n"
">\n"
"class serializer;"
msgstr ""
"/// Provides buffer oriented HTTP message serialization functionality.\n"
"template<\n"
"bool isRequest,\n"
"class Body,\n"
"class Fields = fields\n"
">\n"
"class serializer;"

#. type: table cell
#: 25
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__request_serializer `request_serializer`]"
msgstr ""
"[link beast.ref.boost__beast__http__request_serializer `request_serializer`]"

#. type: table code
#: 25
#, fuzzy
msgid ""
"/// A serializer for HTTP/1 requests\n"
"template<\n"
"class Body,\n"
"class Fields = fields\n"
">\n"
"using request_serializer = serializer<true, Body, Fields>;"
msgstr ""
"/// A serializer for HTTP/1 requests\n"
"template<\n"
"class Body,\n"
"class Fields = fields\n"
">\n"
"using request_serializer = serializer<true, Body, Fields>;"

#. type: table cell
#: 25
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__response_serializer "
"`response_serializer`]"
msgstr ""
"[link beast.ref.boost__beast__http__response_serializer "
"`response_serializer`]"

#. type: table code
#: 25
#, fuzzy
msgid ""
"/// A serializer for HTTP/1 responses\n"
"template<\n"
"class Body,\n"
"class Fields = fields\n"
">\n"
"using response_serializer = serializer<false, Body, Fields>;"
msgstr ""
"/// A serializer for HTTP/1 responses\n"
"template<\n"
"class Body,\n"
"class Fields = fields\n"
">\n"
"using response_serializer = serializer<false, Body, Fields>;"

#. type: paragraph
#: 66
#, fuzzy
msgid ""
"The choices for template types must match the message passed on "
"construction. This code creates an HTTP response and the corresponding "
"serializer:"
msgstr ""
"The choices for template types must match the message passed on "
"construction. This code creates an HTTP response and the corresponding "
"serializer:"

#. type: paragraph
#: 71
#, fuzzy
msgid "The stream operations which work on serializers are:"
msgstr "The stream operations which work on serializers are:"

#. type: table title
#: 73
#, fuzzy
msgctxt "73"
msgid "Serializer Stream Operations"
msgstr "Serializer Stream Operations"

#. type: table cell
#: 73
#, fuzzy
msgctxt "73"
msgid "Name"
msgstr "Name"

#. type: table cell
#: 73
#, fuzzy
msgctxt "73"
msgid "Description"
msgstr "Description"

#. type: table cell
#: 73
#, fuzzy
msgid "[link beast.ref.boost__beast__http__write.overload1 [*write]]"
msgstr "[link beast.ref.boost__beast__http__write.overload1 [*write]]"

#. type: table cell
#: 73
#, fuzzy
msgid "Send everything in a __serializer__ to a __SyncWriteStream__."
msgstr "Send everything in a __serializer__ to a __SyncWriteStream__."

#. type: table cell
#: 73
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__async_write.overload1 [*async_write]]"
msgstr ""
"[link beast.ref.boost__beast__http__async_write.overload1 [*async_write]]"

#. type: table cell
#: 73
#, fuzzy
msgid ""
"Send everything in a __serializer__ asynchronously to an "
"__AsyncWriteStream__."
msgstr ""
"Send everything in a __serializer__ asynchronously to an "
"__AsyncWriteStream__."

#. type: table cell
#: 73
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__write_header.overload1 [*write_header]]"
msgstr ""
"[link beast.ref.boost__beast__http__write_header.overload1 [*write_header]]"

#. type: table cell
#: 73
#, fuzzy
msgid "Send only the header from a __serializer__ to a __SyncWriteStream__."
msgstr "Send only the header from a __serializer__ to a __SyncWriteStream__."

#. type: table cell
#: 73
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__async_write_header [*async_write_header]]"
msgstr ""
"[link beast.ref.boost__beast__http__async_write_header [*async_write_header]]"

#. type: table cell
#: 73
#, fuzzy
msgid ""
"Send only the header from a __serializer__ asynchronously to an "
"__AsyncWriteStream__."
msgstr ""
"Send only the header from a __serializer__ asynchronously to an "
"__AsyncWriteStream__."

#. type: table cell
#: 73
#, fuzzy
msgid "[link beast.ref.boost__beast__http__write_some.overload1 [*write_some]]"
msgstr "[link beast.ref.boost__beast__http__write_some.overload1 [*write_some]]"

#. type: table cell
#: 73
#, fuzzy
msgid "Send part of a __serializer__ to a __SyncWriteStream__."
msgstr "Send part of a __serializer__ to a __SyncWriteStream__."

#. type: table cell
#: 73
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__async_write_some [*async_write_some]]"
msgstr ""
"[link beast.ref.boost__beast__http__async_write_some [*async_write_some]]"

#. type: table cell
#: 73
#, fuzzy
msgid ""
"Send part of a __serializer__ asynchronously to an __AsyncWriteStream__."
msgstr ""
"Send part of a __serializer__ asynchronously to an __AsyncWriteStream__."

#. type: paragraph
#: 107
#, fuzzy
msgid ""
"Here is an example of using a serializer to send a message on a stream "
"synchronously. This performs the same operation as calling `write(stream, m)"
"`:"
msgstr ""
"Here is an example of using a serializer to send a message on a stream "
"synchronously. This performs the same operation as calling `write(stream, m)"
"`:"
