fetchArchiveBytes method
The raw bytes of a package archive (a gzip-compressed tarball).
Implementation
Future<List<int>> fetchArchiveBytes(Uri archiveUri) async {
final response = await _httpClient.get(archiveUri);
if (response.statusCode != 200) {
throw PubDevApiException(archiveUri, response.statusCode);
}
return response.bodyBytes;
}