getQData method

Future<Map<String, String>> getQData(
  1. String qName
)

Get queue data

'qName' is mandatory.

Implementation

Future<Map<String, String>> getQData(String qName) async {
  String path = 'https://${config[accountName]}.queue.core.windows.net/$qName?comp=metadata';
  var request = http.Request('PUT', Uri.parse(path));
  _sign(request);
  var res = await request.send();
  if (res.statusCode == 200 || res.statusCode == 204) {
    return res.headers;
  }
  var message = await res.stream.bytesToString();
  throw AzureStorageException(message, res.statusCode, res.headers);
}