get method

Future<Response> get (
  1. dynamic url,
  2. {Map<String, String> headers}
)

Implementation

Future<Response> get(dynamic url, {Map<String, String> headers}) async {
  final config = await _setup(headers);
  try {
    return _client.get(_buildUrl(url), headers: config.headers);
  } catch(e) {
    return e;
  }
}