Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HttpProxyAgent.js 905B

123456789101112131415161718192021222324252627282930313233
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _net = _interopRequireDefault(require("net"));
  7. var _Agent = _interopRequireDefault(require("./Agent"));
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. class HttpProxyAgent extends _Agent.default {
  10. // @see https://github.com/sindresorhus/eslint-plugin-unicorn/issues/169#issuecomment-486980290
  11. // eslint-disable-next-line unicorn/prevent-abbreviations
  12. constructor(...args) {
  13. super(...args);
  14. this.protocol = 'http:';
  15. this.defaultPort = 80;
  16. }
  17. createConnection(configuration, callback) {
  18. const socket = _net.default.connect(configuration.proxy.port, configuration.proxy.hostname);
  19. callback(null, socket);
  20. }
  21. }
  22. var _default = HttpProxyAgent;
  23. exports.default = _default;
  24. //# sourceMappingURL=HttpProxyAgent.js.map