diff --git a/README.md b/README.md index 008ac34..6465c5f 100644 --- a/README.md +++ b/README.md @@ -166,18 +166,15 @@ The `InternetConnection` class uses the following `Uri`s by default: #### Some Tested URIs -| URI | Description | -| :-------------------------------------------------- | :------------------------------------------------------ | -| `https://ifconfig.me/ip` | Payload is less than `50` bytes, CORS enabled, no-cache | -| `https://ipecho.net/plain` | Payload is less than `50` bytes, CORS enabled, no-cache | -| `https://lenta.ru` | Russia supported, CORS enabled, no-cache | -| `https://www.gazeta.ru` | Russia supported, CORS enabled, no-cache | -| `https://ipapi.co/ip` | CORS enabled, no-cache | -| `https://api.adviceslip.com/advice` | CORS enabled, no-cache | -| `https://api.bitbucket.org/2.0/repositories` | CORS enabled, no-cache | -| `https://www.boredapi.com/api/activity` | CORS enabled, no-cache | -| `https://api.thecatapi.com/v1/images/search` | CORS enabled, no-cache | -| `https://api.coindesk.com/v1/bpi/currentprice.json` | CORS enabled, no-cache | +| URI | Description | +| :-------------------------------------------------- | :--------------------------------------- | +| `https://ipapi.co/ip` | CORS enabled, no-cache | +| `https://api.adviceslip.com/advice` | CORS enabled, no-cache | +| `https://api.bitbucket.org/2.0/repositories` | CORS enabled, no-cache | +| `https://api.thecatapi.com/v1/images/search` | CORS enabled, no-cache | +| `https://api.coindesk.com/v1/bpi/currentprice.json` | CORS enabled, no-cache | +| `https://lenta.ru` | Russia supported, CORS enabled, no-cache | +| `https://www.gazeta.ru` | Russia supported, CORS enabled, no-cache | ## Credits diff --git a/example/lib/pages/custom_uris.dart b/example/lib/pages/custom_uris.dart index 80f614c..51a2ed9 100644 --- a/example/lib/pages/custom_uris.dart +++ b/example/lib/pages/custom_uris.dart @@ -23,10 +23,21 @@ class _CustomURIsState extends State { super.initState(); _subscription = InternetConnection.createInstance( customCheckOptions: [ - InternetCheckOption(uri: Uri.parse('https://icanhazip.com')), + InternetCheckOption(uri: Uri.parse('https://ipapi.co/ip')), InternetCheckOption( - uri: Uri.parse('https://jsonplaceholder.typicode.com/posts/1'), + uri: Uri.parse('https://api.adviceslip.com/advice'), ), + InternetCheckOption( + uri: Uri.parse('https://api.bitbucket.org/2.0/repositories'), + ), + InternetCheckOption( + uri: Uri.parse('https://api.thecatapi.com/v1/images/search'), + ), + InternetCheckOption( + uri: Uri.parse('https://api.coindesk.com/v1/bpi/currentprice.json'), + ), + InternetCheckOption(uri: Uri.parse('https://lenta.ru')), + InternetCheckOption(uri: Uri.parse('https://www.gazeta.ru')), ], useDefaultOptions: false, ).onStatusChange.listen((status) {