msgid ""
msgstr ""
"Project-Id-Version: English (Boost Beast Translation (zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-06 20:31+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-10-custom-parsers-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 "Custom Parsers"
msgstr "Custom Parsers"

#. type: paragraph
#: 12
#, read-only
msgid ""
"While the parsers included in the library will handle a broad number of use-"
"cases, the __basic_parser__ interface can be subclassed to implement custom "
"strategies for storing parsed results: the basic parser processes input "
"buffers into elements according to the HTTP/1 protocol specification, while "
"the derived class decides what to do with those elements. Custom parsers "
"will work with all of the HTTP stream read algorithms, as those algorithms "
"use only the basic parser interface. Some use cases for implementing custom "
"parsers are:"
msgstr ""
"While the parsers included in the library will handle a broad number of use-"
"cases, the __basic_parser__ interface can be subclassed to implement custom "
"strategies for storing parsed results: the basic parser processes input "
"buffers into elements according to the HTTP/1 protocol specification, while "
"the derived class decides what to do with those elements. Custom parsers "
"will work with all of the HTTP stream read algorithms, as those algorithms "
"use only the basic parser interface. Some use cases for implementing custom "
"parsers are:"

#. type: list
#: 21
#, read-only
msgid "* Inspect incoming header fields and keep or discard them."
msgstr "* Inspect incoming header fields and keep or discard them."

#. type: list
#: 23
#, read-only
msgid "* Use a container provided by an external interface."
msgstr "* Use a container provided by an external interface."

#. type: paragraph
#: 25
#, read-only
msgid ""
"The basic parser uses virtual functions. To declare your user-defined "
"parser, derive from __basic_parser__ and implement all the required virtual "
"functions. A declaration for the derived class may look like this:"
msgstr ""
"The basic parser uses virtual functions. To declare your user-defined "
"parser, derive from __basic_parser__ and implement all the required virtual "
"functions. A declaration for the derived class may look like this:"
