getResponse method

Future<Response> getResponse(
  1. Uri uri, {
  2. Map<String, String>? headers,
})

Returns the response of the given url after a GET request. This process is async, thus the response is returned as a future response instance.

Implementation

Future<http.Response> getResponse(
  Uri uri, {
  Map<String, String>? headers,
}) async =>
    _client.get(uri, headers: headers);