Lines Matching refs:fields
29 instruct the parser to move to completion after all the header fields have been parsed.
84 \brief Parse the fields from the \a buffer and store it in \a fields.
86 The fields are parsed incrementally, meaning that even if the full header is not yet in the
87 \a buffer, it will still parse all complete fields and store them in the \a fields.
89 After all fields have been parsed, it will determine the properties of the request body.
93 \retval true All fields were succesfully parsed
94 \retval false There is not enough data in the buffer to complete parsing of fields.
96 \exception BNetworkRequestException The fields not conform to the HTTP spec.
99 HttpParser::ParseFields(HttpBuffer& buffer, BHttpFields& fields)
102 debugger("The parser is not expecting header fields at this point");
108 fields.AddField(fieldLine.value());
126 } else if (auto header = fields.FindField("Transfer-Encoding"sv);
127 header != fields.end() && header->Value() == "chunked"sv) {
132 } else if (fields.CountFields("Content-Length"sv) > 0) {
139 for (const auto& field: fields) {
146 "Multiple Content-Length fields with differing values");
186 auto header = fields.FindField("Content-Encoding"sv);
187 if (header != fields.end() && (header->Value() == "gzip" || header->Value() == "deflate")) {
219 This may change if the header fields have not yet been parsed, as these may contain