hasApp method

Future<bool> hasApp(
  1. String app
)

Implementation

Future<bool> hasApp(String app) async {
  HttpClientResponse? response;
  try {
    response = await send("GET", "/apps/${app}");
    if (response.statusCode == 404) {
      return false;
    }
    return true;
  } finally {
    if (response != null) {
      await response.drain();
    }
  }
}