2
3
6
7
8
9
13#include <restinio/exception.hpp>
14#include <restinio/http_headers.hpp>
16#include <restinio/impl/include_fmtlib.hpp>
29
30
31
32
46
47
48
49
50
51
52
53
54
55
56
57
64
65
66
67
68
69
74 std::size_t started_at,
76 chunk_ext_params_unique_ptr_t ext_params )
94
95
96
97
98
108
109
110
111
122 "unable to make a chunk (started_at:{}, size: {}) "
123 "from a body with length:{}" ),
130 return make_string_view_nonchecked( full_body );
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
178 return m_ext_params.get();
189
190
191
192
212
213
214
215
216
217
218
219
230
231
232
233
241
242
249
250
251
252
257 return m_info.m_chunks[ index ];
262
263
268 return m_info.m_chunks.at( index );
273
274
275
276
277
282 return m_info.m_chunks;
287
288
289
290
295 return m_info.m_trailing_fields;
303
304
305
306
Information about one chunk in an incoming request with chunked encoding.
chunk_info_t(std::size_t started_at, std::size_t size, chunk_ext_params_unique_ptr_t ext_params)
Initializing constructor.
nullable_pointer_t< const chunk_ext_params_t > ext_params() const noexcept
Get a list of chunk extension's params.
std::size_t started_at() const noexcept
Get the starting offset of chunk.
std::size_t size() const noexcept
Get the size of chunk.
string_view_t make_string_view_nonchecked(string_view_t full_body) const noexcept
Extract the chunk value from the whole body.
chunk_ext_params_unique_ptr_t m_ext_params
Storage of chunk extension parameters.
string_view_t make_string_view(string_view_t full_body) const
Extract the chunk value from the whole body.
Exception class for all exceptions thrown by RESTinio.
#define RESTINIO_FMT_FORMAT_STRING(s)
Chunk extension parameter.