Skip to content

Instantly share code, notes, and snippets.

View menelaosbgr's full-sized avatar

Menelaos Bakopoulos menelaosbgr

View GitHub Profile
@fracasula
fracasula / proxy.js
Last active November 28, 2019 16:12
Node.js basic example for proxy to http server
/**
* Once this is running open your browser and hit http://localhost
* You'll see that the request hits the proxy and you get the HTML back
*/
'use strict';
const net = require('net');
const http = require('http');