code: function postSpecsToAppVeyor() {
              log.info(inColor("Posting spec batch to AppVeyor API", "magenta"));
  
              var postData = JSON.stringify(self.unreportedSpecs);
  
              var options = {
                  host: self.api.host,
                  path: self.api.endpoint,
                  port: self.api.port,
                  method: "POST",
                  headers: {
                      "Content-Type": "application/json"
                  }
              };
  
              var http = require("http");
              var req =  http.request(options, function(res) {
                  log.debug(inColor("  STATUS: " + res.statusCode, "yellow"));
                  log.debug(inColor("  HEADERS: " + JSON.stringify(res.headers), "yellow"));
                  res.setEncoding("utf8");
  
                  res.on("data", function (chunk) {
                      log.debug(inColor("  BODY: " + chunk, "yellow"));
                  });
  
                  res.on("end", function() {
                      log.debug(inColor("    RESPONSE END", "yellow"));
                  });
              });
  
              req.on("error", function(e) {
                  log.debug(inColor("API request error: " + e.message, "red"));
              });
  
              req.write(postData);
              req.end();
  
              self.unreportedSpecs = [];
          }
docs: post batch to AppVeyor API