getBytes method

  1. @override
Future<ParseNetworkByteResponse> getBytes(
  1. String path, {
  2. ParseNetworkOptions? options,
  3. ProgressCallback? onReceiveProgress,
  4. dynamic cancelToken,
})
override

Implementation

@override
Future<ParseNetworkByteResponse> getBytes(
  String path, {
  ParseNetworkOptions? options,
  ProgressCallback? onReceiveProgress,
  dynamic cancelToken,
}) async {
  final http.Response response = await _client.get(
    Uri.parse(path),
    headers: options?.headers,
  );
  return ParseNetworkByteResponse(
      bytes: response.bodyBytes, statusCode: response.statusCode);
}