33 const char * part1, * part2, * part3;
34 size_t len1, len2, len3;
37 part2 = memchr(line,
' ', lend - line);
39 if (NULL == part2)
return;
42 for (; *part2 ==
' ' && *part2 != 0; part2++);
44 part3 = memchr(part2,
' ', lend - part2);
46 if (NULL == part3)
return;
49 for (; *part3 ==
' ' && *part3 != 0; part3++);
53 this->current =
httpGetMessage(part1, len1, part2, len2, part3, len3);
HttpMessage httpGetMessage(const char *, size_t, const char *, size_t, const char *, size_t)
void httpParserNewMessage(HttpParser this, const char *line, const char *lend)