11 #ifndef _SMING_CORE_NETWORK_HTTP_HTTP_HEADER_BUILDER_H_ 12 #define _SMING_CORE_NETWORK_HTTP_HTTP_HEADER_BUILDER_H_ 14 #include "HttpHeaders.h" 20 int onHeaderField(
const char* at,
size_t length)
27 lastData.concat(at, length);
32 int onHeaderValue(
HttpHeaders& headers,
const char* at,
size_t length)
35 currentField = lastData;
36 headers[currentField] =
nullptr;
39 headers[currentField].concat(at, length);
47 currentField =
nullptr;
51 bool lastWasValue =
true;
bool setLength(unsigned int length)
set the string length accordingly, expanding if necessary
The string class.
Definition: WString.h:104