getQList method

Future<List<String>> getQList()

Get a list of all queues attached to the storage account

Implementation

Future<List<String>> getQList() async {
  String path = 'https://${config[accountName]}.queue.core.windows.net?comp=list';
  var request = http.Request('GET', Uri.parse(path));
  _sign4Q(request);
  var res = await request.send();
  var message = await res.stream.bytesToString(); //DEBUG
  if (res.statusCode >= 200 && res.statusCode < 300) {
    List<String> tabList = _extractQList(message);
    return tabList;
  }
  throw AzureStorageException(message, res.statusCode, res.headers);
}