get method
Sends an HTTP GET request with the given headers to the given URL.
For more fine-grained control over the request, use send instead.
Implementation
@override
Future<http.Response> get(Uri url,
{Map<String, String>? headers = const {}, bool validate = false}) async {
var response = await super.get(url, headers: headers);
if (_closed) throw HttpClientClosedException();
if (validate) {
_validateResponse(response, response.statusCode);
}
//final now = DateTime.now();
//_log(response.body,
// '${now.minute}.${now.second}.${now.millisecond}-${url.pathSegments.last}-GET');
return response;
}