get method

  1. @override
Future<FileServiceResponse> get(
  1. String url, {
  2. Map<String, String>? headers,
})
override

Implementation

@override
Future<FileServiceResponse> get(String url,
    {Map<String, String>? headers}) async {
  final req = http.Request('GET', Uri.parse(url));
  if (headers != null) {
    req.headers.addAll(headers);
  }
  final httpResponse = await _httpClient.send(req);

  return HttpGetResponse(httpResponse);
}