getURL function
Implementation
Future<HttpResponse> getURL(String url, {HttpClient? client, String? method}) {
method ??= 'GET';
var httpMethod = getHttpMethod(method) ?? HttpMethod.GET;
client ??= HttpClient(url);
return client.requestURL(httpMethod, url);
}