title: node js restler result "get" not complete when trying to return result
body: <p>I'm trying to get the HTML of a website using restler. But when I try to get the relevant part of result, I always get the error, </p>
  
  <p>"TypeError: Cannot read property 'rawEncoded' of undefined". </p>
  
  <p>'rawEncoded' sometimes is 'res'. I think it changes based on processing time.</p>
  
  <p>I'm trying to get result.request.res.rawEncode from restler get result.</p>
  
  <p>My function:</p>
  
  <pre><code>var rest = require('restler');
  
  var loadHtmlUrl = function(weburl) {
      var resultstr = rest.get(weburl).on('complete', function(result) {
          var string = result.request.res.rawEncode;
          return string;
      });
      return resultstr;
  };
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>var htmlstring = loadHtmlUrl('http://google.com');
  </code></pre>
  
  <p>Maybe restler is the entirely wrong way to go. Maybe I don't understand it completely. But I'm definitely stuck...</p>
  
  <p>Thanks!</p>