getBytes method
Future<ParseNetworkByteResponse>
getBytes(
- String path, {
- ParseNetworkOptions? options,
- ProgressCallback? onReceiveProgress,
- 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);
}