anchor.diff:    var request = arguments[0];
     switch (request) {
       case '/daemon':
  -      executeClosed();
  +//      executeClosed();
         break;
       case '/consensus':
  -      executeOpen();
  +//      executeOpen();
         break;
       case '/gateway':
  -      executeApproved();
  +//      executeApproved();
         break;
       case '/host':
  -      executeApproved();
  +//      executeApproved();
         break;
       case '/miner':
  -      executeApproved();
  +//      executeApproved();
         break;
  -    case '/renter':
  -      executeApproved();
  +    case request.substring(0,5) == 'renter':
  +      renter(request);
         break;
  -    case '/transactionpool':
  -      executeApproved();
  +    case request.substring(0,15) == 'transactionpool':
  +//      executeApproved();
         break;
  -    case '/wallet':
  -      executeApproved();
  +    case request.substring(0,6) == 'wallet':
  +//      executeApproved();
         break;      
       default:
         print('nothing works');
  
positive.code: // is governed by a BSD-style license that can be found in the LICENSE file.
  
  import 'package:SiaInterface/SiaInterface.dart' as SiaInterface;
  
  void parseHost(var requestList) {
    var request = requestList[0].substring(4,requestList[0].length);
  
negative.code:   }
    else if (request == "config") {
      // do config stuff
    }
  }
  
  void renter(var param) {
    
    if (param.substring(7, 15) == "downloadqueue") {
      // do downloadqueue
    }
    else if (param.substring(7, 15) == "download") {
      // do download stuff
    }
    else if (param.substring(7, 12) == "files") {
      // do files stuff
    }
    else if (param.substring(7, 13) == "upload") {
      HttpRequest.getString('http://localhost:9980').then(
          (result) => print('Request complete: $result'));
    }
  }
  
  