get method

Future<T> get(
  1. String path
)

Make a GET request to a specific path

Implementation

Future<T> get(String path) async {
  var headers = await this._getHeaders();
  final response = await http.get(
    Uri.parse(path),
    headers: headers,
  );

  var data = _handleResponse(response);
  return mapper(data);
}