@@ -41,6 +41,41 @@ class response_parser
4141 */
4242 response_parser () = default ;
4343
44+ /* * Constructor.
45+
46+ Constructs a parser that uses the @ref
47+ config parameters installed on the
48+ provided `ctx`.
49+
50+ The parser will attempt to allocate
51+ the required space on startup, with the
52+ amount depending on the @ref config
53+ parameters, and will not perform any
54+ further allocations, except for Brotli
55+ decoder instances, if enabled.
56+
57+ Depending on which compression algorithms
58+ are enabled in the @ref config, the parser
59+ will attempt to access the corresponding
60+ decoder services on the same `ctx`.
61+
62+ @par Example
63+ @code
64+ response_parser sr(ctx);
65+ @endcode
66+
67+ @par Complexity
68+ Constant.
69+
70+ @par Exception Safety
71+ Calls to allocate may throw.
72+
73+ @param cfg Configuration settings.
74+ */
75+ BOOST_HTTP_PROTO_DECL
76+ explicit
77+ response_parser (prepared_parser_config cfg);
78+
4479 /* * Constructor.
4580
4681 The states of `other` are transferred
@@ -83,44 +118,7 @@ class response_parser
83118 return *this ;
84119 }
85120
86- /* * Constructor.
87-
88- Constructs a parser that uses the @ref
89- config parameters installed on the
90- provided `ctx`.
91-
92- The parser will attempt to allocate
93- the required space on startup, with the
94- amount depending on the @ref config
95- parameters, and will not perform any
96- further allocations, except for Brotli
97- decoder instances, if enabled.
98-
99- Depending on which compression algorithms
100- are enabled in the @ref config, the parser
101- will attempt to access the corresponding
102- decoder services on the same `ctx`.
103-
104- @par Example
105- @code
106- response_parser sr(ctx);
107- @endcode
108-
109- @par Complexity
110- Constant.
111-
112- @par Exception Safety
113- Calls to allocate may throw.
114-
115- @param cfg Configuration settings.
116-
117- @see
118- @ref install_parser_service,
119- @ref config.
120- */
121- BOOST_HTTP_PROTO_DECL
122- explicit
123- response_parser (prepared_parser_config cfg);
121+ // -------------------------------------------
124122
125123 /* * Prepare for the next message on the stream.
126124
0 commit comments