Add a standalone HTTP/1.1 request-head parser

HA
19h ago
+349-3

Summary

Adds http_parse_request_head to Core as a standalone API for parsing the HTTP/1.1 request line and headers directly from a byte buffer.

  • Distinguishes complete, incomplete, and malformed input.
  • Reports the exact number of bytes consumed through the terminating blank line, leaving any body bytes untouched.
  • Preserves header order and repeated field names, and trims optional whitespace around field values.

This first PR focuses on request-head syntax. Request-target semantics, Host validation, and body framing are follow-up work.

Verification

  • All 13 new parser tests passed on Linux with GCC 14.2 in a Release build. They cover complete input, truncated input, malformed syntax, and the exact boundary before body bytes.
  • The existing HTTP and AWS Signature V4 suites passed.
  • Formatting and diff checks passed.