UNPKG

ember-cli

Version:

Command line tool for developing ambitious ember.js apps

19 lines (15 loc) 399 B
'use strict'; var http = require('http'); var ProxyServer = function() { var _this = this; this.called = false; this.lastReq = null; this.httpServer = http.createServer(function(req, res) { _this.called = true; _this.lastReq = req; res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('okay'); }); this.httpServer.listen(3001); }; module.exports = ProxyServer;