get static method

Future get(
  1. String url, {
  2. Map<String, String>? headers,
  3. bool debug = false,
  4. bool sendLastModified = false,
})

Implementation

static Future<dynamic> get(String url,
    {Map<String, String>? headers,
    bool debug = false,
    bool sendLastModified = false}) async {
  var reqHeaders = await getHeaders(customHeaders: headers);
  if (debug) {
    logger.d('Request headers: $reqHeaders');
  }
  var response = await http.get(Uri.parse(url), headers: reqHeaders);
  return handleResponse(response);
}