code: function requestBody(request, onEnd) {
      var fullBody = '';
      request.on('data', function(d) {
          fullBody += d.toString();
      });
      request.on('end', function() {
          onEnd(querystring.parse(fullBody));
      });
  }
docs: extract data from request body and pass to onEnd functon