Function mini_server::parse_path

source ·
pub fn parse_path(data: String) -> (String, URLSearchParams)
Expand description

The parse_path function takes a string representing an HTTP request path and extracts the path and URL parameters (if any) from it. It returns a tuple containing the path and a URLSearchParams (HashMap<String, String>) representing the parsed URL parameters.