http: convert parsers to strparse

Closes #16436
This commit is contained in:
Daniel Stenberg 2025-02-20 16:55:13 +01:00
parent edd573d980
commit 04289c62de
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 131 additions and 147 deletions

View file

@ -56,6 +56,11 @@ int Curl_str_word(const char **linep, struct Curl_str *out, const size_t max);
int Curl_str_until(const char **linep, struct Curl_str *out, const size_t max,
char delim);
/* Get a word until a newline byte or end of string. At least one byte long.
return non-zero on error */
int Curl_str_untilnl(const char **linep, struct Curl_str *out,
const size_t max);
/* Get a "quoted" word. No escaping possible.
return non-zero on error */
int Curl_str_quotedword(const char **linep, struct Curl_str *out,