code: function ($scope) {
      this.options = { headers: {} };
      if ($scope && $scope.constructor == String) {
          this.options.uri = $scope;
          $scope = {};
      }
      this.data = $scope || {};
      this.jsonArray = [];
      this.posts = {};
      this.cookies = {};
      this.headers = {};
      this.vars = {}; //url query variables
  }
docs: ,http = require('http') outbound request maker. See http.request.
  @options{
  host: String,
  port: Number,
  spread:true - by default the promise is (response, request, response.body) but can be (response)
  }