pub fn key_match(key1: &str, key2: &str) -> bool
key_match determines whether key1 matches the pattern of key2 (similar to RESTful path), key2 can contain * For example, “/foo/bar” matches “/foo/*”