renamed function http_parse_headers to prevent conflict