pub fn parse_http_req(body: Vec<u8>, head: String) -> HTTPRequest
Expand description

The parse_http_req function takes a string representing an entire HTTP request and parses it into a HTTPRequest struct, extracting information such as the HTTP method, path, headers, and body.