unregister static method

void unregister(
  1. HttpMethod method,
  2. String path
)

Removes a previously registered route by method + path.

Implementation

static void unregister(HttpMethod method, String path) {
  _routes.removeWhere((r) => r.method == method && r.path == path);
  _log('Unregistered mock: ${method.value} $path');
}