Function mini_server::parse_http_req
source · pub fn parse_http_req(data: Vec<u8>) -> 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.