| 1 |
|
|
1 |
|
|
| 2 |
|
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
|
2 |
|
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
|
| 3 |
|
// Copyright (c) 2024 Mohammad Nejati
|
3 |
|
// Copyright (c) 2024 Mohammad Nejati
|
| 4 |
|
|
4 |
|
|
| 5 |
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
5 |
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
| 6 |
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
6 |
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
| 7 |
|
|
7 |
|
|
| 8 |
|
// Official repository: https://github.com/cppalliance/http
|
8 |
|
// Official repository: https://github.com/cppalliance/http
|
| 9 |
|
|
9 |
|
|
| 10 |
|
|
10 |
|
|
| 11 |
|
#ifndef BOOST_HTTP_PARSER_HPP
|
11 |
|
#ifndef BOOST_HTTP_PARSER_HPP
|
| 12 |
|
#define BOOST_HTTP_PARSER_HPP
|
12 |
|
#define BOOST_HTTP_PARSER_HPP
|
| 13 |
|
|
13 |
|
|
| 14 |
|
#include <boost/http/config.hpp>
|
14 |
|
#include <boost/http/config.hpp>
|
| 15 |
|
#include <boost/http/detail/header.hpp>
|
15 |
|
#include <boost/http/detail/header.hpp>
|
| 16 |
|
#include <boost/http/detail/type_traits.hpp>
|
16 |
|
#include <boost/http/detail/type_traits.hpp>
|
| 17 |
|
#include <boost/http/error.hpp>
|
17 |
|
#include <boost/http/error.hpp>
|
| 18 |
|
|
18 |
|
|
| 19 |
|
#include <boost/capy/buffers/buffer_copy.hpp>
|
19 |
|
#include <boost/capy/buffers/buffer_copy.hpp>
|
| 20 |
|
#include <boost/capy/buffers/buffer_pair.hpp>
|
20 |
|
#include <boost/capy/buffers/buffer_pair.hpp>
|
| 21 |
|
#include <boost/capy/buffers/slice.hpp>
|
21 |
|
#include <boost/capy/buffers/slice.hpp>
|
| 22 |
|
#include <boost/capy/concept/read_stream.hpp>
|
22 |
|
#include <boost/capy/concept/read_stream.hpp>
|
| 23 |
|
#include <boost/capy/concept/write_sink.hpp>
|
23 |
|
#include <boost/capy/concept/write_sink.hpp>
|
| 24 |
|
#include <boost/capy/cond.hpp>
|
24 |
|
#include <boost/capy/cond.hpp>
|
| 25 |
|
#include <boost/capy/error.hpp>
|
25 |
|
#include <boost/capy/error.hpp>
|
| 26 |
|
#include <boost/capy/io_task.hpp>
|
26 |
|
#include <boost/capy/io_task.hpp>
|
| 27 |
|
#include <boost/core/span.hpp>
|
27 |
|
#include <boost/core/span.hpp>
|
| 28 |
|
|
28 |
|
|
| 29 |
|
|
29 |
|
|
| 30 |
|
|
30 |
|
|
| 31 |
|
|
31 |
|
|
| 32 |
|
|
32 |
|
|
| 33 |
|
|
33 |
|
|
| 34 |
|
|
34 |
|
|
| 35 |
|
|
35 |
|
|
| 36 |
|
|
36 |
|
|
| 37 |
|
|
37 |
|
|
| 38 |
|
|
38 |
|
|
| 39 |
|
|
39 |
|
|
| 40 |
|
|
40 |
|
|
| 41 |
|
|
41 |
|
|
| 42 |
|
//------------------------------------------------
|
42 |
|
//------------------------------------------------
|
| 43 |
|
|
43 |
|
|
| 44 |
|
/** A parser for HTTP/1 messages.
|
44 |
|
/** A parser for HTTP/1 messages.
|
| 45 |
|
|
45 |
|
|
| 46 |
|
This parser uses a single block of memory allocated
|
46 |
|
This parser uses a single block of memory allocated
|
| 47 |
|
during construction and guarantees it will never
|
47 |
|
during construction and guarantees it will never
|
| 48 |
|
exceed the specified size. This space is reused for
|
48 |
|
exceed the specified size. This space is reused for
|
| 49 |
|
parsing multiple HTTP messages ( one at a time ).
|
49 |
|
parsing multiple HTTP messages ( one at a time ).
|
| 50 |
|
|
50 |
|
|
| 51 |
|
The allocated space is used for:
|
51 |
|
The allocated space is used for:
|
| 52 |
|
|
52 |
|
|
| 53 |
|
@li Buffering raw input from a socket
|
53 |
|
@li Buffering raw input from a socket
|
| 54 |
|
@li Storing HTTP headers with O(1) access to
|
54 |
|
@li Storing HTTP headers with O(1) access to
|
| 55 |
|
method, target, and status code
|
55 |
|
method, target, and status code
|
| 56 |
|
@li Storing all or part of an HTTP message body
|
56 |
|
@li Storing all or part of an HTTP message body
|
| 57 |
|
@li Storing state for inflate algorithms
|
57 |
|
@li Storing state for inflate algorithms
|
| 58 |
|
|
58 |
|
|
| 59 |
|
The parser is strict. Any malformed input according
|
59 |
|
The parser is strict. Any malformed input according
|
| 60 |
|
to the HTTP ABNFs is treated as an unrecoverable
|
60 |
|
to the HTTP ABNFs is treated as an unrecoverable
|
| 61 |
|
|
61 |
|
|
| 62 |
|
|
62 |
|
|
| 63 |
|
|
63 |
|
|
| 64 |
|
|
64 |
|
|
| 65 |
|
|
65 |
|
|
| 66 |
|
|
66 |
|
|
| 67 |
|
|
67 |
|
|
| 68 |
|
|
68 |
|
|
| 69 |
|
|
69 |
|
|
| 70 |
|
template<capy::ReadStream Stream>
|
70 |
|
template<capy::ReadStream Stream>
|
| 71 |
|
|
71 |
|
|
| 72 |
|
|
72 |
|
|
| 73 |
|
/// Buffer type returned from @ref prepare.
|
73 |
|
/// Buffer type returned from @ref prepare.
|
| 74 |
|
using mutable_buffers_type =
|
74 |
|
using mutable_buffers_type =
|
| 75 |
|
boost::span<capy::mutable_buffer const>;
|
75 |
|
boost::span<capy::mutable_buffer const>;
|
| 76 |
|
|
76 |
|
|
| 77 |
|
/// Buffer type returned from @ref pull_body.
|
77 |
|
/// Buffer type returned from @ref pull_body.
|
| 78 |
|
using const_buffers_type =
|
78 |
|
using const_buffers_type =
|
| 79 |
|
boost::span<capy::const_buffer const>;
|
79 |
|
boost::span<capy::const_buffer const>;
|
| 80 |
|
|
80 |
|
|
| 81 |
|
//--------------------------------------------
|
81 |
|
//--------------------------------------------
|
| 82 |
|
|
82 |
|
|
| 83 |
|
|
83 |
|
|
| 84 |
|
|
84 |
|
|
| 85 |
|
//--------------------------------------------
|
85 |
|
//--------------------------------------------
|
| 86 |
|
|
86 |
|
|
| 87 |
|
/// Check if a complete header has been parsed.
|
87 |
|
/// Check if a complete header has been parsed.
|
| 88 |
|
|
88 |
|
|
| 89 |
|
|
89 |
|
|
| 90 |
|
got_header() const noexcept;
|
90 |
|
got_header() const noexcept;
|
| 91 |
|
|
91 |
|
|
| 92 |
|
/// Check if a complete message has been parsed.
|
92 |
|
/// Check if a complete message has been parsed.
|
| 93 |
|
|
93 |
|
|
| 94 |
|
|
94 |
|
|
| 95 |
|
is_complete() const noexcept;
|
95 |
|
is_complete() const noexcept;
|
| 96 |
|
|
96 |
|
|
| 97 |
|
//--------------------------------------------
|
97 |
|
//--------------------------------------------
|
| 98 |
|
|
98 |
|
|
| 99 |
|
|
99 |
|
|
| 100 |
|
|
100 |
|
|
| 101 |
|
//--------------------------------------------
|
101 |
|
//--------------------------------------------
|
| 102 |
|
|
102 |
|
|
| 103 |
|
/// Prepare for a new stream.
|
103 |
|
/// Prepare for a new stream.
|
| 104 |
|
|
104 |
|
|
| 105 |
|
|
105 |
|
|
| 106 |
|
|
106 |
|
|
| 107 |
|
|
107 |
|
|
| 108 |
|
/** Prepare for a new message.
|
108 |
|
/** Prepare for a new message.
|
| 109 |
|
|
109 |
|
|
| 110 |
|
|
110 |
|
|
| 111 |
|
Either this is the first message in the stream,
|
111 |
|
Either this is the first message in the stream,
|
| 112 |
|
or the previous message has been fully parsed.
|
112 |
|
or the previous message has been fully parsed.
|
| 113 |
|
|
113 |
|
|
| 114 |
|
|
114 |
|
|
| 115 |
|
|
115 |
|
|
| 116 |
|
|
116 |
|
|
| 117 |
|
|
117 |
|
|
| 118 |
|
/** Return a buffer for reading input.
|
118 |
|
/** Return a buffer for reading input.
|
| 119 |
|
|
119 |
|
|
| 120 |
|
After writing to the buffer, call @ref commit
|
120 |
|
After writing to the buffer, call @ref commit
|
| 121 |
|
with the number of bytes written.
|
121 |
|
with the number of bytes written.
|
| 122 |
|
|
122 |
|
|
| 123 |
|
|
123 |
|
|
| 124 |
|
@ref parse returned @ref condition::need_more_input.
|
124 |
|
@ref parse returned @ref condition::need_more_input.
|
| 125 |
|
|
125 |
|
|
| 126 |
|
|
126 |
|
|
| 127 |
|
A call to @ref commit or @ref commit_eof is
|
127 |
|
A call to @ref commit or @ref commit_eof is
|
| 128 |
|
required before calling @ref prepare again.
|
128 |
|
required before calling @ref prepare again.
|
| 129 |
|
|
129 |
|
|
| 130 |
|
|
130 |
|
|
| 131 |
|
|
131 |
|
|
| 132 |
|
|
132 |
|
|
| 133 |
|
@return A non-empty mutable buffer.
|
133 |
|
@return A non-empty mutable buffer.
|
| 134 |
|
|
134 |
|
|
| 135 |
|
@see @ref commit, @ref commit_eof.
|
135 |
|
@see @ref commit, @ref commit_eof.
|
| 136 |
|
|
136 |
|
|
| 137 |
|
|
137 |
|
|
| 138 |
|
|
138 |
|
|
| 139 |
|
|
139 |
|
|
| 140 |
|
|
140 |
|
|
| 141 |
|
/** Commit bytes to the input buffer.
|
141 |
|
/** Commit bytes to the input buffer.
|
| 142 |
|
|
142 |
|
|
| 143 |
|
|
143 |
|
|
| 144 |
|
@li `n <= capy::buffer_size( this->prepare() )`
|
144 |
|
@li `n <= capy::buffer_size( this->prepare() )`
|
| 145 |
|
@li No prior call to @ref commit or @ref commit_eof
|
145 |
|
@li No prior call to @ref commit or @ref commit_eof
|
| 146 |
|
since the last @ref prepare
|
146 |
|
since the last @ref prepare
|
| 147 |
|
|
147 |
|
|
| 148 |
|
|
148 |
|
|
| 149 |
|
Buffers from @ref prepare are invalidated.
|
149 |
|
Buffers from @ref prepare are invalidated.
|
| 150 |
|
|
150 |
|
|
| 151 |
|
|
151 |
|
|
| 152 |
|
|
152 |
|
|
| 153 |
|
|
153 |
|
|
| 154 |
|
@param n The number of bytes written.
|
154 |
|
@param n The number of bytes written.
|
| 155 |
|
|
155 |
|
|
| 156 |
|
@see @ref parse, @ref prepare.
|
156 |
|
@see @ref parse, @ref prepare.
|
| 157 |
|
|
157 |
|
|
| 158 |
|
|
158 |
|
|
| 159 |
|
|
159 |
|
|
| 160 |
|
|
160 |
|
|
| 161 |
|
|
161 |
|
|
| 162 |
|
|
162 |
|
|
| 163 |
|
/** Indicate end of input.
|
163 |
|
/** Indicate end of input.
|
| 164 |
|
|
164 |
|
|
| 165 |
|
Call this when the underlying stream has closed
|
165 |
|
Call this when the underlying stream has closed
|
| 166 |
|
and no more data will arrive.
|
166 |
|
and no more data will arrive.
|
| 167 |
|
|
167 |
|
|
| 168 |
|
|
168 |
|
|
| 169 |
|
Buffers from @ref prepare are invalidated.
|
169 |
|
Buffers from @ref prepare are invalidated.
|
| 170 |
|
|
170 |
|
|
| 171 |
|
|
171 |
|
|
| 172 |
|
|
172 |
|
|
| 173 |
|
|
173 |
|
|
| 174 |
|
@see @ref parse, @ref prepare.
|
174 |
|
@see @ref parse, @ref prepare.
|
| 175 |
|
|
175 |
|
|
| 176 |
|
|
176 |
|
|
| 177 |
|
|
177 |
|
|
| 178 |
|
|
178 |
|
|
| 179 |
|
|
179 |
|
|
| 180 |
|
/** Parse pending input data.
|
180 |
|
/** Parse pending input data.
|
| 181 |
|
|
181 |
|
|
| 182 |
|
Returns immediately after the header is fully
|
182 |
|
Returns immediately after the header is fully
|
| 183 |
|
parsed to allow @ref set_body_limit to be called
|
183 |
|
parsed to allow @ref set_body_limit to be called
|
| 184 |
|
before body parsing begins. If an error occurs
|
184 |
|
before body parsing begins. If an error occurs
|
| 185 |
|
during body parsing, the parsed header remains
|
185 |
|
during body parsing, the parsed header remains
|
| 186 |
|
|
186 |
|
|
| 187 |
|
|
187 |
|
|
| 188 |
|
When `ec == condition::need_more_input`, read
|
188 |
|
When `ec == condition::need_more_input`, read
|
| 189 |
|
more data and call @ref commit before calling
|
189 |
|
more data and call @ref commit before calling
|
| 190 |
|
|
190 |
|
|
| 191 |
|
|
191 |
|
|
| 192 |
|
When `ec == error::end_of_stream`, the stream
|
192 |
|
When `ec == error::end_of_stream`, the stream
|
| 193 |
|
closed cleanly. Call @ref reset to reuse the
|
193 |
|
closed cleanly. Call @ref reset to reuse the
|
| 194 |
|
|
194 |
|
|
| 195 |
|
|
195 |
|
|
| 196 |
|
@param ec Set to the error, if any occurred.
|
196 |
|
@param ec Set to the error, if any occurred.
|
| 197 |
|
|
197 |
|
|
| 198 |
|
@see @ref start, @ref prepare, @ref commit.
|
198 |
|
@see @ref start, @ref prepare, @ref commit.
|
| 199 |
|
|
199 |
|
|
| 200 |
|
|
200 |
|
|
| 201 |
|
|
201 |
|
|
| 202 |
|
|
202 |
|
|
| 203 |
|
|
203 |
|
|
| 204 |
|
|
204 |
|
|
| 205 |
|
/** Set maximum body size for the current message.
|
205 |
|
/** Set maximum body size for the current message.
|
| 206 |
|
|
206 |
|
|
| 207 |
|
Overrides @ref parser_config::body_limit for this
|
207 |
|
Overrides @ref parser_config::body_limit for this
|
| 208 |
|
message only. The limit resets to the default
|
208 |
|
message only. The limit resets to the default
|
| 209 |
|
|
209 |
|
|
| 210 |
|
|
210 |
|
|
| 211 |
|
|
211 |
|
|
| 212 |
|
`this->got_header() == true` and body parsing
|
212 |
|
`this->got_header() == true` and body parsing
|
| 213 |
|
|
213 |
|
|
| 214 |
|
|
214 |
|
|
| 215 |
|
|
215 |
|
|
| 216 |
|
|
216 |
|
|
| 217 |
|
|
217 |
|
|
| 218 |
|
@param n The body size limit in bytes.
|
218 |
|
@param n The body size limit in bytes.
|
| 219 |
|
|
219 |
|
|
| 220 |
|
@see @ref parser_config::body_limit.
|
220 |
|
@see @ref parser_config::body_limit.
|
| 221 |
|
|
221 |
|
|
| 222 |
|
|
222 |
|
|
| 223 |
|
|
223 |
|
|
| 224 |
|
set_body_limit(std::uint64_t n);
|
224 |
|
set_body_limit(std::uint64_t n);
|
| 225 |
|
|
225 |
|
|
| 226 |
|
/** Return available body data.
|
226 |
|
/** Return available body data.
|
| 227 |
|
|
227 |
|
|
| 228 |
|
Use this to incrementally process body data.
|
228 |
|
Use this to incrementally process body data.
|
| 229 |
|
Call @ref consume_body after processing to
|
229 |
|
Call @ref consume_body after processing to
|
| 230 |
|
release the buffer space.
|
230 |
|
release the buffer space.
|
| 231 |
|
|
231 |
|
|
| 232 |
|
|
232 |
|
|
| 233 |
|
|
233 |
|
|
| 234 |
|
request_parser pr( ctx );
|
234 |
|
request_parser pr( ctx );
|
| 235 |
|
|
235 |
|
|
| 236 |
|
co_await pr.read_header( stream );
|
236 |
|
co_await pr.read_header( stream );
|
| 237 |
|
|
237 |
|
|
| 238 |
|
while( ! pr.is_complete() )
|
238 |
|
while( ! pr.is_complete() )
|
| 239 |
|
|
239 |
|
|
| 240 |
|
co_await read_some( stream, pr );
|
240 |
|
co_await read_some( stream, pr );
|
| 241 |
|
auto cbs = pr.pull_body();
|
241 |
|
auto cbs = pr.pull_body();
|
| 242 |
|
|
242 |
|
|
| 243 |
|
pr.consume_body( capy::buffer_size( cbs ) );
|
243 |
|
pr.consume_body( capy::buffer_size( cbs ) );
|
| 244 |
|
|
244 |
|
|
| 245 |
|
|
245 |
|
|
| 246 |
|
|
246 |
|
|
| 247 |
|
|
247 |
|
|
| 248 |
|
`this->got_header() == true`
|
248 |
|
`this->got_header() == true`
|
| 249 |
|
|
249 |
|
|
| 250 |
|
|
250 |
|
|
| 251 |
|
The returned buffer is invalidated by any
|
251 |
|
The returned buffer is invalidated by any
|
| 252 |
|
modifying member function.
|
252 |
|
modifying member function.
|
| 253 |
|
|
253 |
|
|
| 254 |
|
|
254 |
|
|
| 255 |
|
|
255 |
|
|
| 256 |
|
|
256 |
|
|
| 257 |
|
@return Buffers containing available body data.
|
257 |
|
@return Buffers containing available body data.
|
| 258 |
|
|
258 |
|
|
| 259 |
|
|
259 |
|
|
| 260 |
|
|
260 |
|
|
| 261 |
|
|
261 |
|
|
| 262 |
|
|
262 |
|
|
| 263 |
|
|
263 |
|
|
| 264 |
|
|
264 |
|
|
| 265 |
|
/** Consume bytes from available body data.
|
265 |
|
/** Consume bytes from available body data.
|
| 266 |
|
|
266 |
|
|
| 267 |
|
|
267 |
|
|
| 268 |
|
`n <= capy::buffer_size( this->pull_body() )`
|
268 |
|
`n <= capy::buffer_size( this->pull_body() )`
|
| 269 |
|
|
269 |
|
|
| 270 |
|
|
270 |
|
|
| 271 |
|
|
271 |
|
|
| 272 |
|
|
272 |
|
|
| 273 |
|
@param n The number of bytes to consume.
|
273 |
|
@param n The number of bytes to consume.
|
| 274 |
|
|
274 |
|
|
| 275 |
|
|
275 |
|
|
| 276 |
|
|
276 |
|
|
| 277 |
|
|
277 |
|
|
| 278 |
|
|
278 |
|
|
| 279 |
|
consume_body(std::size_t n);
|
279 |
|
consume_body(std::size_t n);
|
| 280 |
|
|
280 |
|
|
| 281 |
|
/** Return the complete body.
|
281 |
|
/** Return the complete body.
|
| 282 |
|
|
282 |
|
|
| 283 |
|
Use this when the entire message fits within
|
283 |
|
Use this when the entire message fits within
|
| 284 |
|
the parser's internal buffer.
|
284 |
|
the parser's internal buffer.
|
| 285 |
|
|
285 |
|
|
| 286 |
|
|
286 |
|
|
| 287 |
|
|
287 |
|
|
| 288 |
|
request_parser pr( ctx );
|
288 |
|
request_parser pr( ctx );
|
| 289 |
|
|
289 |
|
|
| 290 |
|
co_await pr.read_header( stream );
|
290 |
|
co_await pr.read_header( stream );
|
| 291 |
|
// ... read entire body ...
|
291 |
|
// ... read entire body ...
|
| 292 |
|
core::string_view body = pr.body();
|
292 |
|
core::string_view body = pr.body();
|
| 293 |
|
|
293 |
|
|
| 294 |
|
|
294 |
|
|
| 295 |
|
|
295 |
|
|
| 296 |
|
@li `this->is_complete() == true`
|
296 |
|
@li `this->is_complete() == true`
|
| 297 |
|
@li No previous call to @ref consume_body
|
297 |
|
@li No previous call to @ref consume_body
|
| 298 |
|
|
298 |
|
|
| 299 |
|
|
299 |
|
|
| 300 |
|
|
300 |
|
|
| 301 |
|
|
301 |
|
|
| 302 |
|
@return A string view of the complete body.
|
302 |
|
@return A string view of the complete body.
|
| 303 |
|
|
303 |
|
|
| 304 |
|
|
304 |
|
|
| 305 |
|
|
305 |
|
|
| 306 |
|
|
306 |
|
|
| 307 |
|
|
307 |
|
|
| 308 |
|
|
308 |
|
|
| 309 |
|
|
309 |
|
|
| 310 |
|
/** Return unconsumed data past the last message.
|
310 |
|
/** Return unconsumed data past the last message.
|
| 311 |
|
|
311 |
|
|
| 312 |
|
Use this after an upgrade or CONNECT request
|
312 |
|
Use this after an upgrade or CONNECT request
|
| 313 |
|
to retrieve protocol-dependent data that
|
313 |
|
to retrieve protocol-dependent data that
|
| 314 |
|
follows the HTTP message.
|
314 |
|
follows the HTTP message.
|
| 315 |
|
|
315 |
|
|
| 316 |
|
@return A string view of leftover data.
|
316 |
|
@return A string view of leftover data.
|
| 317 |
|
|
317 |
|
|
| 318 |
|
@see @ref metadata::upgrade, @ref metadata::connection.
|
318 |
|
@see @ref metadata::upgrade, @ref metadata::connection.
|
| 319 |
|
|
319 |
|
|
| 320 |
|
|
320 |
|
|
| 321 |
|
|
321 |
|
|
| 322 |
|
release_buffered_data() noexcept;
|
322 |
|
release_buffered_data() noexcept;
|
| 323 |
|
|
323 |
|
|
| 324 |
|
/** Asynchronously read the HTTP headers.
|
324 |
|
/** Asynchronously read the HTTP headers.
|
| 325 |
|
|
325 |
|
|
| 326 |
|
Reads from the stream until the headers are
|
326 |
|
Reads from the stream until the headers are
|
| 327 |
|
complete or an error occurs.
|
327 |
|
complete or an error occurs.
|
| 328 |
|
|
328 |
|
|
| 329 |
|
|
329 |
|
|
| 330 |
|
@li @ref reset has been called
|
330 |
|
@li @ref reset has been called
|
| 331 |
|
@li @ref start has been called
|
331 |
|
@li @ref start has been called
|
| 332 |
|
|
332 |
|
|
| 333 |
|
@param stream The stream to read from.
|
333 |
|
@param stream The stream to read from.
|
| 334 |
|
|
334 |
|
|
| 335 |
|
@return An awaitable yielding `(error_code)`.
|
335 |
|
@return An awaitable yielding `(error_code)`.
|
| 336 |
|
|
336 |
|
|
| 337 |
|
|
337 |
|
|
| 338 |
|
|
338 |
|
|
| 339 |
|
template<capy::ReadStream Stream>
|
339 |
|
template<capy::ReadStream Stream>
|
| 340 |
|
|
340 |
|
|
| 341 |
|
read_header(Stream& stream);
|
341 |
|
read_header(Stream& stream);
|
| 342 |
|
|
342 |
|
|
| 343 |
|
/** Asynchronously read body data into buffers.
|
343 |
|
/** Asynchronously read body data into buffers.
|
| 344 |
|
|
344 |
|
|
| 345 |
|
Reads from the stream and copies body data into
|
345 |
|
Reads from the stream and copies body data into
|
| 346 |
|
the provided buffers with complete-fill semantics.
|
346 |
|
the provided buffers with complete-fill semantics.
|
| 347 |
|
Returns `capy::error::eof` when the body is complete.
|
347 |
|
Returns `capy::error::eof` when the body is complete.
|
| 348 |
|
|
348 |
|
|
| 349 |
|
|
349 |
|
|
| 350 |
|
@li @ref reset has been called
|
350 |
|
@li @ref reset has been called
|
| 351 |
|
@li @ref start has been called
|
351 |
|
@li @ref start has been called
|
| 352 |
|
|
352 |
|
|
| 353 |
|
@param stream The stream to read from.
|
353 |
|
@param stream The stream to read from.
|
| 354 |
|
|
354 |
|
|
| 355 |
|
@param buffers The buffers to read into.
|
355 |
|
@param buffers The buffers to read into.
|
| 356 |
|
|
356 |
|
|
| 357 |
|
@return An awaitable yielding `(error_code,std::size_t)`.
|
357 |
|
@return An awaitable yielding `(error_code,std::size_t)`.
|
| 358 |
|
|
358 |
|
|
| 359 |
|
|
359 |
|
|
| 360 |
|
|
360 |
|
|
| 361 |
|
template<capy::ReadStream Stream, capy::MutableBufferSequence MB>
|
361 |
|
template<capy::ReadStream Stream, capy::MutableBufferSequence MB>
|
| 362 |
|
capy::io_task<std::size_t>
|
362 |
|
capy::io_task<std::size_t>
|
| 363 |
|
read(Stream& stream, MB buffers);
|
363 |
|
read(Stream& stream, MB buffers);
|
| 364 |
|
|
364 |
|
|
| 365 |
|
/** Return a source for reading body data.
|
365 |
|
/** Return a source for reading body data.
|
| 366 |
|
|
366 |
|
|
| 367 |
|
The returned source satisfies @ref capy::BufferSource.
|
367 |
|
The returned source satisfies @ref capy::BufferSource.
|
| 368 |
|
On first pull, headers are automatically parsed if
|
368 |
|
On first pull, headers are automatically parsed if
|
| 369 |
|
|
369 |
|
|
| 370 |
|
|
370 |
|
|
| 371 |
|
|
371 |
|
|
| 372 |
|
|
372 |
|
|
| 373 |
|
request_parser pr( ctx );
|
373 |
|
request_parser pr( ctx );
|
| 374 |
|
|
374 |
|
|
| 375 |
|
auto body = pr.source_for( socket );
|
375 |
|
auto body = pr.source_for( socket );
|
| 376 |
|
|
376 |
|
|
| 377 |
|
capy::const_buffer arr[16];
|
377 |
|
capy::const_buffer arr[16];
|
| 378 |
|
auto [ec, bufs] = co_await body.pull( arr );
|
378 |
|
auto [ec, bufs] = co_await body.pull( arr );
|
| 379 |
|
body.consume( buffer_size( bufs ) );
|
379 |
|
body.consume( buffer_size( bufs ) );
|
| 380 |
|
|
380 |
|
|
| 381 |
|
|
381 |
|
|
| 382 |
|
@param stream The stream to read from.
|
382 |
|
@param stream The stream to read from.
|
| 383 |
|
|
383 |
|
|
| 384 |
|
@return A source satisfying @ref capy::BufferSource.
|
384 |
|
@return A source satisfying @ref capy::BufferSource.
|
| 385 |
|
|
385 |
|
|
| 386 |
|
@see @ref read_header, @ref capy::BufferSource.
|
386 |
|
@see @ref read_header, @ref capy::BufferSource.
|
| 387 |
|
|
387 |
|
|
| 388 |
|
template<capy::ReadStream Stream>
|
388 |
|
template<capy::ReadStream Stream>
|
| 389 |
|
|
389 |
|
|
| 390 |
|
source_for(Stream& stream) noexcept;
|
390 |
|
source_for(Stream& stream) noexcept;
|
| 391 |
|
|
391 |
|
|
| 392 |
|
/** Read body from stream and push to a WriteSink.
|
392 |
|
/** Read body from stream and push to a WriteSink.
|
| 393 |
|
|
393 |
|
|
| 394 |
|
Reads body data from the stream and pushes each chunk to
|
394 |
|
Reads body data from the stream and pushes each chunk to
|
| 395 |
|
the sink. The sink must consume all bytes from each write.
|
395 |
|
the sink. The sink must consume all bytes from each write.
|
| 396 |
|
|
396 |
|
|
| 397 |
|
@param stream The stream to read body data from.
|
397 |
|
@param stream The stream to read body data from.
|
| 398 |
|
|
398 |
|
|
| 399 |
|
@param sink The sink to receive body data.
|
399 |
|
@param sink The sink to receive body data.
|
| 400 |
|
|
400 |
|
|
| 401 |
|
@return An awaitable yielding `(error_code)`.
|
401 |
|
@return An awaitable yielding `(error_code)`.
|
| 402 |
|
|
402 |
|
|
| 403 |
|
|
403 |
|
|
| 404 |
|
|
404 |
|
|
| 405 |
|
template<capy::WriteSink Sink>
|
405 |
|
template<capy::WriteSink Sink>
|
| 406 |
|
|
406 |
|
|
| 407 |
|
read(capy::ReadStream auto& stream, Sink&& sink);
|
407 |
|
read(capy::ReadStream auto& stream, Sink&& sink);
|
| 408 |
|
|
408 |
|
|
| 409 |
|
|
409 |
|
|
| 410 |
|
friend class request_parser;
|
410 |
|
friend class request_parser;
|
| 411 |
|
friend class response_parser;
|
411 |
|
friend class response_parser;
|
| 412 |
|
|
412 |
|
|
| 413 |
|
|
413 |
|
|
| 414 |
|
BOOST_HTTP_DECL ~parser();
|
414 |
|
BOOST_HTTP_DECL ~parser();
|
| 415 |
|
BOOST_HTTP_DECL parser() noexcept;
|
415 |
|
BOOST_HTTP_DECL parser() noexcept;
|
| 416 |
|
BOOST_HTTP_DECL parser(parser&& other) noexcept;
|
416 |
|
BOOST_HTTP_DECL parser(parser&& other) noexcept;
|
| 417 |
|
|
417 |
|
|
| 418 |
|
std::shared_ptr<parser_config_impl const> cfg,
|
418 |
|
std::shared_ptr<parser_config_impl const> cfg,
|
| 419 |
|
|
419 |
|
|
| 420 |
|
BOOST_HTTP_DECL void assign(parser&& other) noexcept;
|
420 |
|
BOOST_HTTP_DECL void assign(parser&& other) noexcept;
|
| 421 |
|
|
421 |
|
|
| 422 |
|
|
422 |
|
|
| 423 |
|
|
423 |
|
|
| 424 |
|
|
424 |
|
|
| 425 |
|
|
425 |
|
|
| 426 |
|
|
426 |
|
|
| 427 |
|
safe_get_request() const;
|
427 |
|
safe_get_request() const;
|
| 428 |
|
|
428 |
|
|
| 429 |
|
|
429 |
|
|
| 430 |
|
safe_get_response() const;
|
430 |
|
safe_get_response() const;
|
| 431 |
|
|
431 |
|
|
| 432 |
|
|
432 |
|
|
| 433 |
|
|
433 |
|
|
| 434 |
|
|
434 |
|
|
| 435 |
|
/** A source for reading the message body.
|
435 |
|
/** A source for reading the message body.
|
| 436 |
|
|
436 |
|
|
| 437 |
|
This type satisfies @ref capy::BufferSource. It can be
|
437 |
|
This type satisfies @ref capy::BufferSource. It can be
|
| 438 |
|
constructed immediately after parser construction; on
|
438 |
|
constructed immediately after parser construction; on
|
| 439 |
|
first pull, headers are automatically parsed if not
|
439 |
|
first pull, headers are automatically parsed if not
|
| 440 |
|
|
440 |
|
|
| 441 |
|
|
441 |
|
|
| 442 |
|
@tparam Stream A type satisfying @ref capy::ReadStream.
|
442 |
|
@tparam Stream A type satisfying @ref capy::ReadStream.
|
| 443 |
|
|
443 |
|
|
| 444 |
|
@see @ref parser::source_for.
|
444 |
|
@see @ref parser::source_for.
|
| 445 |
|
|
445 |
|
|
| 446 |
|
template<capy::ReadStream Stream>
|
446 |
|
template<capy::ReadStream Stream>
|
| 447 |
|
|
447 |
|
|
| 448 |
|
|
448 |
|
|
| 449 |
|
|
449 |
|
|
| 450 |
|
|
450 |
|
|
| 451 |
|
|
451 |
|
|
| 452 |
|
|
452 |
|
|
| 453 |
|
|
453 |
|
|
| 454 |
|
|
454 |
|
|
| 455 |
|
|
455 |
|
|
| 456 |
|
|
456 |
|
|
| 457 |
|
|
457 |
|
|
| 458 |
|
|
458 |
|
|
| 459 |
|
|
459 |
|
|
| 460 |
|
/// Construct a source for reading body data.
|
460 |
|
/// Construct a source for reading body data.
|
| 461 |
|
source(Stream& stream, parser& pr) noexcept
|
461 |
|
source(Stream& stream, parser& pr) noexcept
|
| 462 |
|
|
462 |
|
|
| 463 |
|
|
463 |
|
|
| 464 |
|
|
464 |
|
|
| 465 |
|
|
465 |
|
|
| 466 |
|
|
466 |
|
|
| 467 |
|
/** Pull buffer data from the body.
|
467 |
|
/** Pull buffer data from the body.
|
| 468 |
|
|
468 |
|
|
| 469 |
|
On first invocation, reads headers if not yet parsed.
|
469 |
|
On first invocation, reads headers if not yet parsed.
|
| 470 |
|
Returns buffer descriptors pointing to internal parser
|
470 |
|
Returns buffer descriptors pointing to internal parser
|
| 471 |
|
memory. When the body is complete, returns an empty span.
|
471 |
|
memory. When the body is complete, returns an empty span.
|
| 472 |
|
|
472 |
|
|
| 473 |
|
@param dest Span of const_buffer to fill.
|
473 |
|
@param dest Span of const_buffer to fill.
|
| 474 |
|
|
474 |
|
|
| 475 |
|
@return An awaitable yielding `(error_code,std::span<const_buffer>)`.
|
475 |
|
@return An awaitable yielding `(error_code,std::span<const_buffer>)`.
|
| 476 |
|
|
476 |
|
|
| 477 |
|
capy::io_task<std::span<capy::const_buffer>>
|
477 |
|
capy::io_task<std::span<capy::const_buffer>>
|
| 478 |
|
pull(std::span<capy::const_buffer> dest);
|
478 |
|
pull(std::span<capy::const_buffer> dest);
|
| 479 |
|
|
479 |
|
|
| 480 |
|
/** Consume bytes from pulled body data.
|
480 |
|
/** Consume bytes from pulled body data.
|
| 481 |
|
|
481 |
|
|
| 482 |
|
Advances the read position by the specified number of
|
482 |
|
Advances the read position by the specified number of
|
| 483 |
|
bytes. The next pull returns data starting after the
|
483 |
|
bytes. The next pull returns data starting after the
|
| 484 |
|
|
484 |
|
|
| 485 |
|
|
485 |
|
|
| 486 |
|
@param n The number of bytes to consume.
|
486 |
|
@param n The number of bytes to consume.
|
| 487 |
|
|
487 |
|
|
| 488 |
|
|
488 |
|
|
| 489 |
|
consume(std::size_t n) noexcept;
|
489 |
|
consume(std::size_t n) noexcept;
|
| 490 |
|
|
490 |
|
|
| 491 |
|
|
491 |
|
|
| 492 |
|
template<capy::ReadStream Stream>
|
492 |
|
template<capy::ReadStream Stream>
|
| 493 |
|
|
493 |
|
|
| 494 |
|
|
494 |
|
|
| 495 |
|
read_header(Stream& stream)
|
495 |
|
read_header(Stream& stream)
|
| 496 |
|
|
496 |
|
|
| 497 |
|
|
497 |
|
|
| 498 |
|
|
498 |
|
|
| 499 |
|
|
499 |
|
|
| 500 |
|
|
500 |
|
|
| 501 |
|
|
501 |
|
|
| 502 |
|
|
502 |
|
|
| 503 |
|
|
503 |
|
|
| 504 |
|
|
504 |
|
|
| 505 |
|
if(ec != condition::need_more_input)
|
505 |
|
if(ec != condition::need_more_input)
|
| 506 |
|
|
506 |
|
|
| 507 |
|
|
507 |
|
|
| 508 |
|
|
508 |
|
|
| 509 |
|
|
509 |
|
|
| 510 |
|
auto [read_ec, n] = co_await stream.read_some(mbs);
|
510 |
|
auto [read_ec, n] = co_await stream.read_some(mbs);
|
| 511 |
|
if(read_ec == capy::cond::eof)
|
511 |
|
if(read_ec == capy::cond::eof)
|
| 512 |
|
|
512 |
|
|
| 513 |
|
|
513 |
|
|
| 514 |
|
|
514 |
|
|
| 515 |
|
|
515 |
|
|
| 516 |
|
|
516 |
|
|
| 517 |
|
|
517 |
|
|
| 518 |
|
|
518 |
|
|
| 519 |
|
|
519 |
|
|
| 520 |
|
template<capy::ReadStream Stream, capy::MutableBufferSequence MB>
|
520 |
|
template<capy::ReadStream Stream, capy::MutableBufferSequence MB>
|
| 521 |
|
capy::io_task<std::size_t>
|
521 |
|
capy::io_task<std::size_t>
|
| 522 |
|
|
522 |
|
|
| 523 |
|
read(Stream& stream, MB buffers)
|
523 |
|
read(Stream& stream, MB buffers)
|
| 524 |
|
|
524 |
|
|
| 525 |
|
if(capy::buffer_empty(buffers))
|
525 |
|
if(capy::buffer_empty(buffers))
|
| 526 |
|
|
526 |
|
|
| 527 |
|
|
527 |
|
|
| 528 |
|
|
528 |
|
|
| 529 |
|
auto dest = capy::sans_prefix(buffers, 0);
|
529 |
|
auto dest = capy::sans_prefix(buffers, 0);
|
| 530 |
|
|
530 |
|
|
| 531 |
|
|
531 |
|
|
| 532 |
|
|
532 |
|
|
| 533 |
|
|
533 |
|
|
| 534 |
|
|
534 |
|
|
| 535 |
|
|
535 |
|
|
| 536 |
|
|
536 |
|
|
| 537 |
|
|
537 |
|
|
| 538 |
|
auto body_data = pull_body();
|
538 |
|
auto body_data = pull_body();
|
| 539 |
|
if(capy::buffer_size(body_data) > 0)
|
539 |
|
if(capy::buffer_size(body_data) > 0)
|
| 540 |
|
|
540 |
|
|
| 541 |
|
std::size_t copied = capy::buffer_copy(dest, body_data);
|
541 |
|
std::size_t copied = capy::buffer_copy(dest, body_data);
|
| 542 |
|
|
542 |
|
|
| 543 |
|
|
543 |
|
|
| 544 |
|
dest = capy::sans_prefix(dest, copied);
|
544 |
|
dest = capy::sans_prefix(dest, copied);
|
| 545 |
|
|
545 |
|
|
| 546 |
|
if(capy::buffer_empty(dest))
|
546 |
|
if(capy::buffer_empty(dest))
|
| 547 |
|
|
547 |
|
|
| 548 |
|
|
548 |
|
|
| 549 |
|
|
549 |
|
|
| 550 |
|
|
550 |
|
|
| 551 |
|
co_return {capy::error::eof, total};
|
551 |
|
co_return {capy::error::eof, total};
|
| 552 |
|
|
552 |
|
|
| 553 |
|
|
553 |
|
|
| 554 |
|
if(ec == condition::need_more_input)
|
554 |
|
if(ec == condition::need_more_input)
|
| 555 |
|
|
555 |
|
|
| 556 |
|
|
556 |
|
|
| 557 |
|
auto [read_ec, n] = co_await stream.read_some(mbs);
|
557 |
|
auto [read_ec, n] = co_await stream.read_some(mbs);
|
| 558 |
|
|
558 |
|
|
| 559 |
|
if(read_ec == capy::cond::eof)
|
559 |
|
if(read_ec == capy::cond::eof)
|
| 560 |
|
|
560 |
|
|
| 561 |
|
|
561 |
|
|
| 562 |
|
|
562 |
|
|
| 563 |
|
|
563 |
|
|
| 564 |
|
co_return {read_ec, total};
|
564 |
|
co_return {read_ec, total};
|
| 565 |
|
|
565 |
|
|
| 566 |
|
|
566 |
|
|
| 567 |
|
|
567 |
|
|
| 568 |
|
|
568 |
|
|
| 569 |
|
|
569 |
|
|
| 570 |
|
|
570 |
|
|
| 571 |
|
|
571 |
|
|
| 572 |
|
|
572 |
|
|
| 573 |
|
|
573 |
|
|
| 574 |
|
template<capy::ReadStream Stream>
|
574 |
|
template<capy::ReadStream Stream>
|
| 575 |
|
|
575 |
|
|
| 576 |
|
|
576 |
|
|
| 577 |
|
source_for(Stream& stream) noexcept
|
577 |
|
source_for(Stream& stream) noexcept
|
| 578 |
|
|
578 |
|
|
| 579 |
|
return source<Stream>(stream, *this);
|
579 |
|
return source<Stream>(stream, *this);
|
| 580 |
|
|
580 |
|
|
| 581 |
|
|
581 |
|
|
| 582 |
|
template<capy::ReadStream Stream>
|
582 |
|
template<capy::ReadStream Stream>
|
| 583 |
|
capy::io_task<std::span<capy::const_buffer>>
|
583 |
|
capy::io_task<std::span<capy::const_buffer>>
|
| 584 |
|
|
584 |
|
|
| 585 |
|
pull(std::span<capy::const_buffer> dest)
|
585 |
|
pull(std::span<capy::const_buffer> dest)
|
| 586 |
|
|
586 |
|
|
| 587 |
|
// Read headers if not yet parsed
|
587 |
|
// Read headers if not yet parsed
|
| 588 |
|
|
588 |
|
|
| 589 |
|
|
589 |
|
|
| 590 |
|
auto [ec] = co_await pr_->read_header(*stream_);
|
590 |
|
auto [ec] = co_await pr_->read_header(*stream_);
|
| 591 |
|
|
591 |
|
|
| 592 |
|
|
592 |
|
|
| 593 |
|
|
593 |
|
|
| 594 |
|
|
594 |
|
|
| 595 |
|
|
595 |
|
|
| 596 |
|
|
596 |
|
|
| 597 |
|
|
597 |
|
|
| 598 |
|
|
598 |
|
|
| 599 |
|
|
599 |
|
|
| 600 |
|
auto body_data = pr_->pull_body();
|
600 |
|
auto body_data = pr_->pull_body();
|
| 601 |
|
if(capy::buffer_size(body_data) > 0)
|
601 |
|
if(capy::buffer_size(body_data) > 0)
|
| 602 |
|
|
602 |
|
|
| 603 |
|
std::size_t count = (std::min)(body_data.size(), dest.size());
|
603 |
|
std::size_t count = (std::min)(body_data.size(), dest.size());
|
| 604 |
|
for(std::size_t i = 0; i < count; ++i)
|
604 |
|
for(std::size_t i = 0; i < count; ++i)
|
| 605 |
|
|
605 |
|
|
| 606 |
|
co_return {{}, dest.first(count)};
|
606 |
|
co_return {{}, dest.first(count)};
|
| 607 |
|
|
607 |
|
|
| 608 |
|
|
608 |
|
|
| 609 |
|
|
609 |
|
|
| 610 |
|
co_return {capy::error::eof, {}};
|
610 |
|
co_return {capy::error::eof, {}};
|
| 611 |
|
|
611 |
|
|
| 612 |
|
if(ec == condition::need_more_input)
|
612 |
|
if(ec == condition::need_more_input)
|
| 613 |
|
|
613 |
|
|
| 614 |
|
auto mbs = pr_->prepare();
|
614 |
|
auto mbs = pr_->prepare();
|
| 615 |
|
auto [read_ec, n] = co_await stream_->read_some(mbs);
|
615 |
|
auto [read_ec, n] = co_await stream_->read_some(mbs);
|
| 616 |
|
|
616 |
|
|
| 617 |
|
if(read_ec == capy::cond::eof)
|
617 |
|
if(read_ec == capy::cond::eof)
|
| 618 |
|
|
618 |
|
|
| 619 |
|
|
619 |
|
|
| 620 |
|
|
620 |
|
|
| 621 |
|
|
621 |
|
|
| 622 |
|
|
622 |
|
|
| 623 |
|
|
623 |
|
|
| 624 |
|
|
624 |
|
|
| 625 |
|
|
625 |
|
|
| 626 |
|
|
626 |
|
|
| 627 |
|
|
627 |
|
|
| 628 |
|
|
628 |
|
|
| 629 |
|
|
629 |
|
|
| 630 |
|
|
630 |
|
|
| 631 |
|
|
631 |
|
|
| 632 |
|
template<capy::ReadStream Stream>
|
632 |
|
template<capy::ReadStream Stream>
|
| 633 |
|
|
633 |
|
|
| 634 |
|
|
634 |
|
|
| 635 |
|
consume(std::size_t n) noexcept
|
635 |
|
consume(std::size_t n) noexcept
|
| 636 |
|
|
636 |
|
|
| 637 |
|
|
637 |
|
|
| 638 |
|
|
638 |
|
|
| 639 |
|
|
639 |
|
|
| 640 |
|
template<capy::WriteSink Sink>
|
640 |
|
template<capy::WriteSink Sink>
|
| 641 |
|
|
641 |
|
|
| 642 |
|
|
642 |
|
|
| 643 |
|
read(capy::ReadStream auto& stream, Sink&& sink)
|
643 |
|
read(capy::ReadStream auto& stream, Sink&& sink)
|
| 644 |
|
|
644 |
|
|
| 645 |
|
|
645 |
|
|
| 646 |
|
|
646 |
|
|
| 647 |
|
|
647 |
|
|
| 648 |
|
|
648 |
|
|
| 649 |
|
|
649 |
|
|
| 650 |
|
|
650 |
|
|
| 651 |
|
|
651 |
|
|
| 652 |
|
auto body_data = pull_body();
|
652 |
|
auto body_data = pull_body();
|
| 653 |
|
if(capy::buffer_size(body_data) > 0)
|
653 |
|
if(capy::buffer_size(body_data) > 0)
|
| 654 |
|
|
654 |
|
|
| 655 |
|
auto [write_ec, n] = co_await sink.write(body_data);
|
655 |
|
auto [write_ec, n] = co_await sink.write(body_data);
|
| 656 |
|
|
656 |
|
|
| 657 |
|
|
657 |
|
|
| 658 |
|
|
658 |
|
|
| 659 |
|
|
659 |
|
|
| 660 |
|
|
660 |
|
|
| 661 |
|
|
661 |
|
|
| 662 |
|
|
662 |
|
|
| 663 |
|
auto [eof_ec] = co_await sink.write_eof();
|
663 |
|
auto [eof_ec] = co_await sink.write_eof();
|
| 664 |
|
|
664 |
|
|
| 665 |
|
|
665 |
|
|
| 666 |
|
|
666 |
|
|
| 667 |
|
|
667 |
|
|
| 668 |
|
if(ec == condition::need_more_input)
|
668 |
|
if(ec == condition::need_more_input)
|
| 669 |
|
|
669 |
|
|
| 670 |
|
|
670 |
|
|
| 671 |
|
auto [read_ec, n] = co_await stream.read_some(mbs);
|
671 |
|
auto [read_ec, n] = co_await stream.read_some(mbs);
|
| 672 |
|
|
672 |
|
|
| 673 |
|
if(read_ec == capy::cond::eof)
|
673 |
|
if(read_ec == capy::cond::eof)
|
| 674 |
|
|
674 |
|
|
| 675 |
|
|
675 |
|
|
| 676 |
|
|
676 |
|
|
| 677 |
|
|
677 |
|
|
| 678 |
|
|
678 |
|
|
| 679 |
|
|
679 |
|
|
| 680 |
|
|
680 |
|
|
| 681 |
|
|
681 |
|
|
| 682 |
|
|
682 |
|
|
| 683 |
|
|
683 |
|
|
| 684 |
|
|
684 |
|
|
| 685 |
|
|
685 |
|
|
| 686 |
|
|
686 |
|
|
| 687 |
|
|
687 |
|
|
| 688 |
|
|
688 |
|
|
| 689 |
|
|
689 |
|
|
| 690 |
|
|
690 |
|
|
| 691 |
|
|
691 |
|
|