Definition at line 300 of file http_parser.cpp.hpp.
300 {
302
303
304 bool progress = true;
306 progress = false;
307
310
312
314 progress = true;
315 }
316 break;
317
319
321
322
323 auto contentLength =
getHeader(
"Content-Length");
324 auto transferEncoding =
getHeader(
"Transfer-Encoding");
325
326 if (transferEncoding.has_value() &&
330 } else if (contentLength.has_value()) {
331 int contentLengthInt = 0;
332 if (
parseInt(contentLength.value(), contentLengthInt)) {
335 } else {
336
338 }
339 } else {
340
342 }
343 progress = true;
344 }
345 break;
346
348
350
351
353
354 progress = true;
355 }
356 break;
357
359
360 break;
361 }
362 }
363}
fl::optional< fl::string > getHeader(const char *name) const
fl::size find(const char &value) const FL_NOEXCEPT
iterator begin() FL_NOEXCEPT
iterator end() FL_NOEXCEPT
static constexpr fl::size npos
fl::string toLower(const fl::string &str)
int parseInt(const char *str, fl::size len)
Parse an integer from a character buffer.
References HttpResponseParser(), COMPLETE, feed(), fl::basic_string::find(), getHeader(), mBuffer, mContentLength, mIsChunked, mState, fl::string::npos, parseBody(), parseHeaders(), fl::parseInt(), parseStatusLine(), READ_BODY, READ_HEADERS, and READ_STATUS_LINE.
Referenced by ~HttpResponseParser(), and feed().