health method

Future<bool> health()

Check if the remote API is reachable and healthy.

Implementation

Future<bool> health() async {
  try {
    final body = await _get('/health');
    return body['status'] == 'ok';
  } catch (_) {
    return false;
  }
}