Definition at line 72 of file http_parser.cpp.hpp.
72 {
74
75
76 bool progress = true;
78 progress = false;
79
82
84
86 progress = true;
87 }
88 break;
89
91
93
94
95 auto contentLength =
getHeader(
"Content-Length");
96 auto transferEncoding =
getHeader(
"Transfer-Encoding");
97
98 if (transferEncoding.has_value() &&
102 } else if (contentLength.has_value()) {
103 int contentLengthInt = 0;
104 if (
parseInt(contentLength.value(), contentLengthInt)) {
107 } else {
108
110 }
111 } else {
112
114 }
115 progress = true;
116 }
117 break;
118
120
122
123
125
126 progress = true;
127 }
128 break;
129
131
132 break;
133 }
134 }
135}
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 HttpRequestParser(), COMPLETE, feed(), fl::basic_string::find(), getHeader(), mBuffer, mContentLength, mIsChunked, mState, fl::string::npos, parseBody(), parseHeaders(), fl::parseInt(), parseRequestLine(), READ_BODY, READ_HEADERS, and READ_REQUEST_LINE.
Referenced by ~HttpRequestParser(), and feed().