https.js 676 B

1234567891011
  1. var https = require("https");
  2. var promisify = require("./_promisify.js");
  3. var bind = function(c, f) { return f && f.bind(c); };
  4. Object.defineProperties(module.exports, {
  5. Agent: { enumerable: true, value: https.Agent },
  6. Server: { enumerable: true, value: https.Server },
  7. createServer: { enumerable: true, value: bind(https, https.createServer) },
  8. get: { enumerable: true, value: promisify(https, https.get, 1, {"returnsObject":true}) },
  9. globalAgent: { enumerable: true, get: function() { return https.globalAgent; }, set: function(v) { https.globalAgent = v; } },
  10. request: { enumerable: true, value: promisify(https, https.request, 1, {"returnsObject":true}) },
  11. });