isUrlOK method
Returns true
if the url
is OK (performs a request).
Implementation
Future<bool> isUrlOK(Uri url, {Duration? minCertificateValidityTime}) async {
try {
var body = await getURL(
url,
checkCertificate: true,
minCertificateValidityTime: minCertificateValidityTime,
log: true,
);
return body != null;
} catch (_) {
return false;
}
}