isATunnelNotFoundResponse static method
Parse the returned response and determine if it needs to be removed from the queue.
As a device with connectivity will still return a response if the endpoint is unreachable,
false positives need to be filtered after the response
is available.
Implementation
static bool isATunnelNotFoundResponse(http.Response response) {
return response.statusCode == 404 &&
response.body.startsWith('Tunnel') &&
response.body.endsWith('not found');
}