Skip to content

Instantly share code, notes, and snippets.

Nitzan Aviram nitzanav

Block or report user

Report or block nitzanav

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nitzanav / node-simple-proxy.js
Last active Jun 18, 2019 — forked from mizzy/node-simple-proxy.js
Simple proxy made by node.js - Async one that returns response immediately to the client. The response of the host is ignored.
View node-simple-proxy.js
var http = require('http');
var url = require('url');
var proxy = http.createServer(function(req, res) {
var request = url.parse(req.url);
options = {
host: request.hostname,
port: request.port || 80,
path: request.path,
method: req.method,
You can’t perform that action at this time.