getMapKey method

String getMapKey(
  1. String path,
  2. bool ignoreQuery,
  3. HttpMethod? method
)

Implementation

String getMapKey(String path, bool ignoreQuery, HttpMethod? method) {
  final uri = Uri.parse(path);
  final pathKey = ignoreQuery ? uri.path : '${uri.path}?${uri.query}';
  return method != null ? '${method.name.toUpperCase()}:$pathKey' : pathKey;
}