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 15: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-07-parser-buffers-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
msgid "Buffer-Oriented Parsing"
msgstr "Buffer-Oriented Parsing"

#. type: paragraph
#: 13
#, fuzzy
msgid ""
"A subclass of __basic_parser__ can be invoked directly, without using the "
"provided stream operations. This could be useful for implementing algorithms "
"on objects whose interface does not conform to __Stream__. For example, a "
"[@http://zeromq.org/ *ZeroMQ* socket]. The basic parser interface is "
"interactive; the caller invokes the function [link "
"beast.ref.boost__beast__http__basic_parser.put `basic_parser::put`] "
"repeatedly with buffers until an error occurs or the parsing is done. The "
"function [link beast.ref.boost__beast__http__basic_parser.put_eof "
"`basic_parser::put_eof`] Is used when the caller knows that there will never "
"be more data (for example, if the underlying connection is closed),"
msgstr ""
"A subclass of __basic_parser__ can be invoked directly, without using the "
"provided stream operations. This could be useful for implementing algorithms "
"on objects whose interface does not conform to __Stream__. For example, a "
"[@http://zeromq.org/ *ZeroMQ* socket]. The basic parser interface is "
"interactive; the caller invokes the function [link "
"beast.ref.boost__beast__http__basic_parser.put `basic_parser::put`] "
"repeatedly with buffers until an error occurs or the parsing is done. The "
"function [link beast.ref.boost__beast__http__basic_parser.put_eof "
"`basic_parser::put_eof`] Is used when the caller knows that there will never "
"be more data (for example, if the underlying connection is closed),"

#. type: heading
#: 26
#, fuzzy
msgctxt "26"
msgid "Parser Options"
msgstr "Parser Options"

#. type: paragraph
#: 28
#, fuzzy
msgid ""
"The parser provides a few options which may be set before parsing begins:"
msgstr ""
"The parser provides a few options which may be set before parsing begins:"

#. type: table title
#: 30
#, fuzzy
msgctxt "30"
msgid "Parser Options"
msgstr "Parser Options"

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

#. type: table cell
#: 30
#, fuzzy
msgid "Default"
msgstr "Default"

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

#. type: table cell
#: 30
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__basic_parser.eager.overload2 `eager`]"
msgstr ""
"[link beast.ref.boost__beast__http__basic_parser.eager.overload2 `eager`]"

#. type: table cell
#.
#: 30
msgctxt "30"
msgid "`false`"
msgstr ""

#. type: table cell
#: 30
#, fuzzy
msgid ""
"Normally the parser returns after successfully parsing a structured element "
"(header, chunk header, or chunk body) even if there are octets remaining in "
"the input. This is necessary when attempting to parse the header first, or "
"when the caller wants to inspect information which may be invalidated by "
"subsequent parsing, such as a chunk extension. The `eager` option controls "
"whether the parser keeps going after parsing structured element if there are "
"octets remaining in the buffer and no error occurs. This option is "
"automatically set or cleared during certain stream operations to improve "
"performance with no change in functionality."
msgstr ""
"Normally the parser returns after successfully parsing a structured element "
"(header, chunk header, or chunk body) even if there are octets remaining in "
"the input. This is necessary when attempting to parse the header first, or "
"when the caller wants to inspect information which may be invalidated by "
"subsequent parsing, such as a chunk extension. The `eager` option controls "
"whether the parser keeps going after parsing structured element if there are "
"octets remaining in the buffer and no error occurs. This option is "
"automatically set or cleared during certain stream operations to improve "
"performance with no change in functionality."

#. type: table cell
#: 30
#, fuzzy
msgid "[link beast.ref.boost__beast__http__basic_parser.skip.overload2 `skip`]"
msgstr "[link beast.ref.boost__beast__http__basic_parser.skip.overload2 `skip`]"

#. type: table cell
#: 30
#, fuzzy
msgid ""
"This option controls whether or not the parser expects to see an HTTP body, "
"regardless of the presence or absence of certain fields such as Content-"
"Length or a chunked Transfer-Encoding. Depending on the request, some "
"responses do not carry a body. For example, a 200 response to a [@https://"
"tools.ietf.org/html/rfc7231#section-4.3.6 CONNECT] request from a tunneling "
"proxy, or a response to a [@https://tools.ietf.org/html/rfc7231#section-"
"4.3.2 HEAD] request. In these cases, callers may use this function inform "
"the parser that no body is expected. The parser will consider the message "
"complete after the header has been received."
msgstr ""
"This option controls whether or not the parser expects to see an HTTP body, "
"regardless of the presence or absence of certain fields such as Content-"
"Length or a chunked Transfer-Encoding. Depending on the request, some "
"responses do not carry a body. For example, a 200 response to a [@https://"
"tools.ietf.org/html/rfc7231#section-4.3.6 CONNECT] request from a tunneling "
"proxy, or a response to a [@https://tools.ietf.org/html/rfc7231#section-"
"4.3.2 HEAD] request. In these cases, callers may use this function inform "
"the parser that no body is expected. The parser will consider the message "
"complete after the header has been received."

#. type: table cell
#: 30
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__basic_parser.body_limit `body_limit`]"
msgstr ""
"[link beast.ref.boost__beast__http__basic_parser.body_limit `body_limit`]"

#. type: table cell
#: 30
#, fuzzy
msgid "1MB/8MB"
msgstr "1MB/8MB"

#. type: table cell
#: 30
#, fuzzy
msgid ""
"This function sets the maximum allowed size of the content body. When a body "
"larger than the specified size is detected, an error is generated and "
"parsing terminates. This setting helps protect servers from resource "
"exhaustion attacks. The default limit when parsing requests is 1MB, and for "
"parsing responses 8MB."
msgstr ""
"This function sets the maximum allowed size of the content body. When a body "
"larger than the specified size is detected, an error is generated and "
"parsing terminates. This setting helps protect servers from resource "
"exhaustion attacks. The default limit when parsing requests is 1MB, and for "
"parsing responses 8MB."

#. type: table cell
#: 30
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__http__basic_parser.header_limit `header_limit`]"
msgstr ""
"[link beast.ref.boost__beast__http__basic_parser.header_limit `header_limit`]"

#. type: table cell
#: 30
#, fuzzy
msgid "8KB"
msgstr "8KB"

#. type: table cell
#: 30
#, fuzzy
msgid ""
"This function sets the maximum allowed size of the header including all "
"field name, value, and delimiter characters and also including the CRLF "
"sequences in the serialized input."
msgstr ""
"This function sets the maximum allowed size of the header including all "
"field name, value, and delimiter characters and also including the CRLF "
"sequences in the serialized input."

#. type: section title
#: 88
#, fuzzy
msgid "Read From std::istream __example__"
msgstr "Read From std::istream __example__"

#. type: paragraph
#: 90
#, fuzzy
msgid ""
"The standard library provides the type `std::istream` for performing high "
"level read operations on character streams. The variable `std::cin` is based "
"on this input stream. This example uses the buffer oriented interface of "
"__basic_parser__ to build a stream operation which parses an HTTP message "
"from a `std::istream`:"
msgstr ""
"The standard library provides the type `std::istream` for performing high "
"level read operations on character streams. The variable `std::cin` is based "
"on this input stream. This example uses the buffer oriented interface of "
"__basic_parser__ to build a stream operation which parses an HTTP message "
"from a `std::istream`:"

#. type: paragraph
#: 99
#, fuzzy
msgid "Parsing from a `std::istream` could be implemented using an alternate"
msgstr "Parsing from a `std::istream` could be implemented using an alternate"
