returned pointer is always within [buf, buf_end), or null */
| 226 | |
| 227 | /* returned pointer is always within [buf, buf_end), or null */ |
| 228 | static const char *parse_http_version(const char *buf, const char *buf_end, |
| 229 | int *minor_version, int *ret) { |
| 230 | EXPECT_CHAR('H'); |
| 231 | EXPECT_CHAR('T'); |
| 232 | EXPECT_CHAR('T'); |
| 233 | EXPECT_CHAR('P'); |
| 234 | EXPECT_CHAR('/'); |
| 235 | EXPECT_CHAR('1'); |
| 236 | EXPECT_CHAR('.'); |
| 237 | return parse_int(buf, buf_end, minor_version, ret); |
| 238 | } |
| 239 | |
| 240 | static const char *parse_headers(const char *buf, const char *buf_end, |
| 241 | struct phr_header *headers, |
no test coverage detected