msgid ""
msgstr ""
"Project-Id-Version: English (Boost Beast Translation (zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-07 06:19+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-07-concepts-fields-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
msgid "Fields"
msgstr "Fields"

#. type: paragraph
#: 12
#, read-only
msgid ""
"An instance of [*Fields] is a container for holding HTTP header fields and "
"their values. The implementation also calls upon the container to store the "
"request target and non-standard strings for method and obsolete reason "
"phrase as needed. Types which meet these requirements can always be "
"serialized."
msgstr ""
"An instance of [*Fields] is a container for holding HTTP header fields and "
"their values. The implementation also calls upon the container to store the "
"request target and non-standard strings for method and obsolete reason "
"phrase as needed. Types which meet these requirements can always be "
"serialized."

#. type: heading
#: 18
#, read-only
msgid "Associated Types"
msgstr "Associated Types"

#. type: list
#: 20
#, read-only
msgid ""
"* [link beast.ref.boost__beast__http__is_fields `is_fields`]\n"
"* __FieldsWriter__"
msgstr ""
"* [link beast.ref.boost__beast__http__is_fields `is_fields`]\n"
"* __FieldsWriter__"

#. type: heading
#: 23
#, read-only
msgid "Requirements"
msgstr "Requirements"

#. type: paragraph
#: 25
#, read-only
msgid "In this table:"
msgstr "In this table:"

#. type: list
#: 27
#, read-only
msgid ""
"* `F` denotes a type that meets the requirements of [*Fields].\n"
"* `W` denotes a type meeting the requirements of __FieldsWriter__.\n"
"* `a` denotes a value of type `F`.\n"
"* `c` denotes a (possibly const) value of type `F`.\n"
"* `b` is a value of type `bool`\n"
"* `n` is a value of type `boost::optional<std::uint64_t>`.\n"
"* `s` is a value of type [link beast.ref.boost__beast__string_view "
"`string_view`].\n"
"* `v` is a value of type `unsigned int` representing the HTTP-version."
msgstr ""
"* `F` denotes a type that meets the requirements of [*Fields].\n"
"* `W` denotes a type meeting the requirements of __FieldsWriter__.\n"
"* `a` denotes a value of type `F`.\n"
"* `c` denotes a (possibly const) value of type `F`.\n"
"* `b` is a value of type `bool`\n"
"* `n` is a value of type `boost::optional<std::uint64_t>`.\n"
"* `s` is a value of type [link beast.ref.boost__beast__string_view "
"`string_view`].\n"
"* `v` is a value of type `unsigned int` representing the HTTP-version."

#. type: table title
#: 36
#, read-only
msgid "Valid expressions"
msgstr "Valid expressions"

#. type: table cell
#: 36
#, read-only
msgid "Expression"
msgstr "Expression"

#. type: table cell
#: 36
#, read-only
msgid "Type"
msgstr "Type"

#. type: table cell
#: 36
#, read-only
msgid "Semantics, Pre/Post-conditions"
msgstr "Semantics, Pre/Post-conditions"

#. type: table cell
#: 36
#, read-only
msgid "`F::writer`"
msgstr "`F::writer`"

#. type: table cell
#: 36
#, read-only
msgid "`W`"
msgstr "`W`"

#. type: table cell
#: 36
#, read-only
msgid "A type which meets the requirements of __FieldsWriter__."
msgstr "A type which meets the requirements of __FieldsWriter__."

#. type: table cell
#: 36
#, read-only
msgid "`c.get_method_impl()`"
msgstr "`c.get_method_impl()`"

#. type: table cell
#.
#: 36
#, read-only
msgctxt "36"
msgid "`string_view`"
msgstr "`string_view`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Returns the method text. The implementation only calls this function for "
"request headers when retrieving the method text previously set with a call "
"to `set_method_impl` using a non-empty string."
msgstr ""
"Returns the method text. The implementation only calls this function for "
"request headers when retrieving the method text previously set with a call "
"to `set_method_impl` using a non-empty string."

#. type: table cell
#: 36
#, read-only
msgid "`c.get_target_impl()`"
msgstr "`c.get_target_impl()`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Returns the target string. The implementation only calls this function for "
"request headers."
msgstr ""
"Returns the target string. The implementation only calls this function for "
"request headers."

#. type: table cell
#: 36
#, read-only
msgid "`c.get_reason_impl()`"
msgstr "`c.get_reason_impl()`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Returns the obsolete request text. The implementation only calls this for "
"response headers when retrieving the reason text previously set with a call "
"to `set_reason_impl` using a non-empty string."
msgstr ""
"Returns the obsolete request text. The implementation only calls this for "
"response headers when retrieving the reason text previously set with a call "
"to `set_reason_impl` using a non-empty string."

#. type: table cell
#: 36
#, read-only
msgid "`c.get_chunked_impl()`"
msgstr "`c.get_chunked_impl()`"

#. type: table cell
#.
#: 36
#, read-only
msgctxt "36"
msgid "`bool`"
msgstr "`bool`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Returns `true` if the [@https://tools.ietf.org/html/rfc7230#section-3.3.1 "
"[*Transfer-Encoding]] field value indicates that the payload is chunk "
"encoded. Both of these conditions must be true: [itemized_list [ The "
"Transfer-Encoding field is present in the message. ][ The last item in value "
"of the field is \"chunked\". ]]"
msgstr ""
"Returns `true` if the [@https://tools.ietf.org/html/rfc7230#section-3.3.1 "
"[*Transfer-Encoding]] field value indicates that the payload is chunk "
"encoded. Both of these conditions must be true: [itemized_list [ The "
"Transfer-Encoding field is present in the message. ][ The last item in value "
"of the field is \"chunked\". ]]"

#. type: table cell
#: 36
#, read-only
msgid "`c.get_keep_alive_impl(v)`"
msgstr "`c.get_keep_alive_impl(v)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Returns `true` if the semantics of the [@https://tools.ietf.org/html/"
"rfc7230#section-6.1 [*Connection]] field and version indicate that the "
"connection should remain open after the corresponding response is "
"transmitted or received:\n"
"\n"
"[itemized_list [ If `(v < 11)` the function returns `true` if the \"keep-"
"alive\" token is present in the Connection field value. Otherwise the "
"function returns `false`. ][ If `(v == 11)`, the function returns `false` if "
"the \"close\" token is present in the Connection field value. Otherwise the "
"function returns `true`. ]]"
msgstr ""
"Returns `true` if the semantics of the [@https://tools.ietf.org/html/"
"rfc7230#section-6.1 [*Connection]] field and version indicate that the "
"connection should remain open after the corresponding response is "
"transmitted or received:\n"
"\n"
"[itemized_list [ If `(v < 11)` the function returns `true` if the \"keep-"
"alive\" token is present in the Connection field value. Otherwise the "
"function returns `false`. ][ If `(v == 11)`, the function returns `false` if "
"the \"close\" token is present in the Connection field value. Otherwise the "
"function returns `true`. ]]"

#. type: table cell
#: 36
#, read-only
msgid "`c.has_content_length()`"
msgstr "`c.has_content_length()`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Returns `true` if the [@https://tools.ietf.org/html/rfc7230#section-3.3.2 "
"[*Content-Length]] field is present."
msgstr ""
"Returns `true` if the [@https://tools.ietf.org/html/rfc7230#section-3.3.2 "
"[*Content-Length]] field is present."

#. type: table cell
#: 36
#, read-only
msgid "`a.set_method_impl(s)`"
msgstr "`a.set_method_impl(s)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Stores a copy of `s` as the method text, or erases the previously stored "
"value if `s` is empty. The implementation only calls this function for "
"request headers. This function may throw `std::invalid_argument` if the "
"operation is not supported by the container."
msgstr ""
"Stores a copy of `s` as the method text, or erases the previously stored "
"value if `s` is empty. The implementation only calls this function for "
"request headers. This function may throw `std::invalid_argument` if the "
"operation is not supported by the container."

#. type: table cell
#: 36
#, read-only
msgid "`a.set_target_impl(s)`"
msgstr "`a.set_target_impl(s)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Stores a copy of `s` as the target, or erases the previously stored value if "
"`s` is empty. The implementation only calls this function for request "
"headers. This function may throw `std::invalid_argument` if the operation is "
"not supported by the container."
msgstr ""
"Stores a copy of `s` as the target, or erases the previously stored value if "
"`s` is empty. The implementation only calls this function for request "
"headers. This function may throw `std::invalid_argument` if the operation is "
"not supported by the container."

#. type: table cell
#: 36
#, read-only
msgid "`a.set_reason_impl(s)`"
msgstr "`a.set_reason_impl(s)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Stores a copy of `s` as the reason text, or erases the previously stored "
"value of the reason text if `s` is empty. The implementation only calls this "
"function for request headers. This function may throw "
"`std::invalid_argument` if the operation is not supported by the container."
msgstr ""
"Stores a copy of `s` as the reason text, or erases the previously stored "
"value of the reason text if `s` is empty. The implementation only calls this "
"function for request headers. This function may throw "
"`std::invalid_argument` if the operation is not supported by the container."

#. type: table cell
#: 36
#, read-only
msgid "`a.set_chunked_impl(b)`"
msgstr "`a.set_chunked_impl(b)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Adjusts the [@https://tools.ietf.org/html/rfc7230#section-3.3.1 [*Transfer-"
"Encoding]] field value as follows:\n"
"\n"
"[itemized_list [ If `b` is `true`, the \"chunked\" token is appended to the "
"list of encodings if it does not already appear last in the list. If the "
"Transfer-Encoding field is absent, the field will be inserted to the "
"container with the value \"chunked\". ][ If `b` is `false, the \"chunked\" "
"token is removed from the list of encodings if it appears last in the list. "
"If the result of the removal leaves the list of encodings empty, the "
"Transfer-Encoding field shall not appear when the associated "
"__FieldsWriter__ serializes the fields. ]]\n"
"\n"
"If the result of adjusting the field value produces an empty string, the "
"field is removed from the container."
msgstr ""
"Adjusts the [@https://tools.ietf.org/html/rfc7230#section-3.3.1 [*Transfer-"
"Encoding]] field value as follows:\n"
"\n"
"[itemized_list [ If `b` is `true`, the \"chunked\" token is appended to the "
"list of encodings if it does not already appear last in the list. If the "
"Transfer-Encoding field is absent, the field will be inserted to the "
"container with the value \"chunked\". ][ If `b` is `false, the \"chunked\" "
"token is removed from the list of encodings if it appears last in the list. "
"If the result of the removal leaves the list of encodings empty, the "
"Transfer-Encoding field shall not appear when the associated "
"__FieldsWriter__ serializes the fields. ]]\n"
"\n"
"If the result of adjusting the field value produces an empty string, the "
"field is removed from the container."

#. type: table cell
#: 36
#, read-only
msgid "`a.set_content_length_impl(n)`"
msgstr "`a.set_content_length_impl(n)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Adjusts the [@https://tools.ietf.org/html/rfc7230#section-3.3.2 [*Content-"
"Length]] field value as follows:\n"
"\n"
"[itemized_list [ If `n` contains a value, the Content-Length field will be "
"set to the text representation of the value. Any previous Content-Length "
"fields are removed from the container. ][ If `n` does not contain a value, "
"any present Content-Length fields are removed from the container. ]]"
msgstr ""
"Adjusts the [@https://tools.ietf.org/html/rfc7230#section-3.3.2 [*Content-"
"Length]] field value as follows:\n"
"\n"
"[itemized_list [ If `n` contains a value, the Content-Length field will be "
"set to the text representation of the value. Any previous Content-Length "
"fields are removed from the container. ][ If `n` does not contain a value, "
"any present Content-Length fields are removed from the container. ]]"

#. type: table cell
#: 36
#, read-only
msgid "`a.set_keep_alive_impl(v,b)`"
msgstr "`a.set_keep_alive_impl(v,b)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"Adjusts the [@https://tools.ietf.org/html/rfc7230#section-6.1 [*Connection]] "
"field value depending on the values of `v` and `b`. The field value is "
"treated as [@https://tools.ietf.org/html/rfc7230#section-6.1 ['connection-"
"option]] (rfc7230).\n"
"\n"
"[itemized_list [ If `(v < 11 && b)`, then all \"close\" tokens present in "
"the value are removed, and the \"keep-alive\" token is added to the value if "
"it is not already present. ][ If `(v < 11 && ! b)`, then all \"close\" and "
"\"keep-alive\" tokens present in the value are removed.\n"
"\n"
"][ If `(v == 11 && b)`, then all \"keep-alive\" and \"close\" tokens present "
"in the value are removed. ][ If `(v == 11 && ! b)`, then all \"keep-alive\" "
"tokens present in the value are removed, and the \"close\" token is added to "
"the value if it is not already present. ]]\n"
"\n"
"If the result of adjusting the field value produces an empty string, the "
"field is removed from the container."
msgstr ""
"Adjusts the [@https://tools.ietf.org/html/rfc7230#section-6.1 [*Connection]] "
"field value depending on the values of `v` and `b`. The field value is "
"treated as [@https://tools.ietf.org/html/rfc7230#section-6.1 ['connection-"
"option]] (rfc7230).\n"
"\n"
"[itemized_list [ If `(v < 11 && b)`, then all \"close\" tokens present in "
"the value are removed, and the \"keep-alive\" token is added to the value if "
"it is not already present. ][ If `(v < 11 && ! b)`, then all \"close\" and "
"\"keep-alive\" tokens present in the value are removed.\n"
"\n"
"][ If `(v == 11 && b)`, then all \"keep-alive\" and \"close\" tokens present "
"in the value are removed. ][ If `(v == 11 && ! b)`, then all \"keep-alive\" "
"tokens present in the value are removed, and the \"close\" token is added to "
"the value if it is not already present. ]]\n"
"\n"
"If the result of adjusting the field value produces an empty string, the "
"field is removed from the container."

#. type: heading
#: 224
#, read-only
msgid "Exemplar"
msgstr "Exemplar"

#. type: heading
#: 228
#, read-only
msgid "Models"
msgstr "Models"

#. type: list
#: 230
#, read-only
msgid ""
"* [link beast.ref.boost__beast__http__basic_fields `basic_fields`]\n"
"* [link beast.ref.boost__beast__http__fields `fields`]"
msgstr ""
"* [link beast.ref.boost__beast__http__basic_fields `basic_fields`]\n"
"* [link beast.ref.boost__beast__http__fields `fields`]"
