msgid ""
msgstr ""
"Project-Id-Version: English (Boost Beast Translation (zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-06 17:47+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: English <https://insights.cppalliance.org/weblate/projects/"
"boost-beast-documentation-zh_Hans/doc-qbk-04-http-04-serializer-streams-qbk/"
"en/>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 2026.5\n"

#. type: section title
#: 10
#, read-only
msgctxt "10"
msgid "Serializer Stream Operations"
msgstr "Serializer Stream Operations"

#. type: paragraph
#: 12
#, read-only
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
#, read-only
msgid "* Send the header first, and the body later."
msgstr "* Send the header first, and the body later."

#. type: list
#: 17
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
msgid "Serializer"
msgstr "Serializer"

#. type: table cell
#: 25
#, read-only
msgctxt "25"
msgid "Name"
msgstr "Name"

#. type: table cell
#: 25
#, read-only
msgctxt "25"
msgid "Description"
msgstr "Description"

#. type: table cell
#: 25
#, read-only
msgid "__serializer__"
msgstr "__serializer__"

#. type: table code
#: 25
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
msgid "The stream operations which work on serializers are:"
msgstr "The stream operations which work on serializers are:"

#. type: table title
#: 73
#, read-only
msgctxt "73"
msgid "Serializer Stream Operations"
msgstr "Serializer Stream Operations"

#. type: table cell
#: 73
#, read-only
msgctxt "73"
msgid "Name"
msgstr "Name"

#. type: table cell
#: 73
#, read-only
msgctxt "73"
msgid "Description"
msgstr "Description"

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

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

#. type: table cell
#: 73
#, read-only
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
#, read-only
msgid ""
"Send everything in a __serializer__ asynchronously to an "
"__AsyncWriteStream__."
msgstr ""
"Send everything in a __serializer__ asynchronously to an "
"__AsyncWriteStream__."

#. type: table cell
#: 73
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
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
#, read-only
msgid "Send part of a __serializer__ to a __SyncWriteStream__."
msgstr "Send part of a __serializer__ to a __SyncWriteStream__."

#. type: table cell
#: 73
#, read-only
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
#, read-only
msgid ""
"Send part of a __serializer__ asynchronously to an __AsyncWriteStream__."
msgstr ""
"Send part of a __serializer__ asynchronously to an __AsyncWriteStream__."

#. type: paragraph
#: 107
#, read-only
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)"
"`:"
