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-25 14:29+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-fieldswriter-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 "FieldsWriter"
msgstr "字段写入器"

#. type: paragraph
#: 12
msgid ""
"A [*FieldsWriter] provides a algorithm to obtain a sequence of buffers "
"representing the complete serialized HTTP/1 header for a set of fields. The "
"implementation constructs an instance of this type when needed, and calls "
"into it once to retrieve the buffers."
msgstr ""
"[*FieldsWriter] 提供了一种算法，用于获取表示一组字段的完整序列化 HTTP/1 标头"
"的缓冲区序列。实现会在需要时构造该类型的实例，并仅调用一次以获取缓冲区。"

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

#. type: list
#: 19
msgid "* __FieldsWriter__"
msgstr "* __FieldsWriter__"

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

#. type: paragraph
#: 24
msgid "These requirements may undergo non-backward compatible"
msgstr "这些要求可能会发生非向后兼容的变更"

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

#. type: list
#: 30
msgid ""
"* `W` denotes a type that meets the requirements of [*FieldsWriter].\n"
"* `F` denotes a __Fields__ where"
msgstr ""
"* `W` 表示满足 [*FieldsWriter] 要求的类型。\n"
"* `F` 表示 __Fields__，其中"

#. type: list
#: 33
msgid ""
"* `a` is a value of type `W`.\n"
"* `f` is a value of type `F`.\n"
"* `v` is an `unsigned` value representing the HTTP version.\n"
"* `c` is an `unsigned` representing the HTTP status-code.\n"
"* `m` is a value of type [link beast.ref.boost__beast__http__verb `verb`]."
msgstr ""
"* `a` 是类型为 `W` 的值。\n"
"* `f` 是类型为 `F` 的值。\n"
"* `v` 是表示 HTTP 版本的 `unsigned` 值。\n"
"* `c` 是表示 HTTP 状态码的 `unsigned` 值。\n"
"* `m` 是 [link beast.ref.boost__beast__http__verb `verb`] 类型的值。"

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

#. type: table cell
#: 39
msgid "expression"
msgstr "表达式"

#. type: table cell
#: 39
msgid "type"
msgstr "类型"

#. type: table cell
#: 39
msgid "semantics, pre/post-conditions"
msgstr "语义，前置/后置条件"

#. type: table cell
#.
#: 39
msgctxt "39"
msgid "`W::const_buffers_type`"
msgstr ""

#. type: table cell
#: 39
msgid ""
"A type which meets the requirements of __ConstBufferSequence__. This is the "
"type of buffer returned by `W::get`."
msgstr ""
"一种满足 __ConstBufferSequence__ 要求的类型。该类型是 `W::get` 返回的缓冲区类"
"型。"

#. type: table cell
#: 39
msgid "`W{f,v,m}`"
msgstr "`W{f,v,m}`"

#. type: table cell
#: 39
msgid ""
"The implementation calls this constructor to indicate that the fields being "
"serialized form part of an HTTP request. The lifetime of `f` is guaranteed "
"to end no earlier than after the `W` is destroyed."
msgstr ""
"实现调用该构造函数，用于表示正在序列化的字段属于 HTTP 请求。该对象 `f` 的生命"
"周期保证在 `W` 销毁之后才会结束。"

#. type: table cell
#: 39
msgid "`W{f,v,c}`"
msgstr "`W{f,v,c}`"

#. type: table cell
#: 39
msgid ""
"The implementation calls this constructor to indicate that the fields being "
"serialized form part of an HTTP response. The lifetime of `f` is guaranteed "
"to end no earlier than after the `W` is destroyed."
msgstr ""
"实现调用该构造函数，用于表示正在序列化的字段属于 HTTP 响应。该对象 `f` 的生命"
"周期保证在 `W` 销毁之后才会结束。"

#. type: table cell
#: 39
msgid "`W{f}`"
msgstr "`W{f}`"

#. type: table cell
#: 39
msgid ""
"The implementation calls this constructor to indicate that the fields being "
"serialized form part of a chunked encoding final-chunk trailer. The lifetime "
"of `f` is guaranteed to end no earlier than after the `W` is destroyed."
msgstr ""
"实现调用该构造函数，用于表示正在序列化的字段属于分块传输编码的最终块尾部。该"
"对象 `f` 的生命周期保证在 `W` 销毁之后才会结束。"

#. type: table cell
#: 39
msgid "`a.get()`"
msgstr "`a.get()`"

#. type: table cell
#: 39
msgid ""
"Called once after construction, this function returns a constant buffer "
"sequence containing the serialized representation of the HTTP request or "
"response including the final carriage return linefeed sequence (`\"\\r\\n\"`)"
".\n"
"\n"
"Copies may be made of the returned sequence, but the underlying memory is "
"still owned by the writer. The implementation will destroy all copies of the "
"buffer sequence before destroying `a`."
msgstr ""
"该函数在构造后仅被调用一次，用于返回一个常量缓冲区序列。该序列包含 HTTP 请求"
"或响应的序列化表示，以及最终的换行回车序列（\"\\r\\n\"）。\n"
"\n"
"返回的序列可以被拷贝，但底层内存仍由该写入器持有。实现会在销毁该对象 `a` 之前"
"，销毁该缓冲区序列的所有拷贝。"

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

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

#. type: list
#: 98
msgid ""
"* [link beast.ref.boost__beast__http__basic_fields.writer "
"`basic_fields::writer`]"
msgstr ""
"* [link beast.ref.boost__beast__http__basic_fields.writer "
"`basic_fields::writer`]"
