Skip to content

Instantly share code, notes, and snippets.

View skhavari's full-sized avatar
💭
I may be slow to respond.

Sam Khavari skhavari

💭
I may be slow to respond.
View GitHub Profile
// HTTP forward proxy server that can also proxy HTTPS requests
// using the CONNECT method
// requires https://github.com/nodejitsu/node-http-proxy
var httpProxy = require('http-proxy'),
url = require('url'),
net = require('net'),
http = require('http');