Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

silly http proxy thing

  • Loading branch information...
commit 066d37845b5eb0324246c9586a90c851e020dd51 1 parent b15c9b6
@substack substack authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/servers/http.js
View
12 lib/servers/http.js
@@ -0,0 +1,12 @@
+var http = require('http');
+
+module.exports = function (cb) {
+ return http.createServer(function (req, res) {
+ console.log(' *** req ***');
+ console.dir(req);
+ console.log(' *** res ***');
+ console.dir(res);
+ session(stream, cb);
+ cb(req, res);
+ });
+};
Please sign in to comment.
Something went wrong with that request. Please try again.