<commit_before>var   http = require('http')
    , https = require('https')
    , caronte = require('caronte')
    ;
//
// Create your proxy server
//
var options = {target:'https://google.com',
               agent: new https.Agent({rejectUnauthorized:false}),
               };

var proxyServer = caronte.createProxyServer(options);

proxyServer.ee.on('*:error', function(err, req, res){
	res.end('There was an error proxying your request');
});

console.log("Proxy server listening on port 8000");
proxyServer.listen(8000);


//
// Create your proxy server
//
var options2 = {target:'https://google.com',
               headers: {'host':'google.com'},
               };

var proxyServer2 = caronte.createProxyServer(options2);

proxyServer2.ee.on('*:error', function(err, req, res){
  res.end('There was an error proxying your request');
});

console.log("Proxy server 2 listening on port 8001");
proxyServer2.listen(8001);

//
// Create your proxy server
//
var options3 = {target:'https://google.com'};

var proxyServer3 = caronte.createProxyServer(options3);

proxyServer3.ee.on('*:error', function(err, req, res){
  res.end('There was an error proxying your request');
});

console.log("Proxy server 3 listening on port 8002");
proxyServer3.listen(8002);<commit_msg>ENH: updated example<commit_after>var   http = require('http')
    , https = require('https')
    , caronte = require('caronte')
    ;
//
// Create your proxy server
//
var options = {target:'https://google.com',
               agent: new https.Agent({rejectUnauthorized:false}),
               };

var proxyServer = caronte.createProxyServer(options);

proxyServer.ee.on('*:error', function(err, req, res){
	res.end('There was an error proxying your request');
});

console.log("Proxy server listening on port 8000");
proxyServer.listen(8000);


//
// Create your proxy server
//
var options2 = {target:'https://google.com',
               headers: {'host':'google.com'},
               };

var proxyServer2 = caronte.createProxyServer(options2);

proxyServer2.ee.on('*:error', function(err, req, res){
  res.end('There was an error proxying your request');
});

console.log("Proxy server 2 listening on port 8001");
proxyServer2.listen(8001);

//
// Create your proxy server
//
var options3 = {target:'https://google.com',
                xfwd:true};

var proxyServer3 = caronte.createProxyServer(options3);

proxyServer3.ee.on('*:error', function(err, req, res){
  res.end('There was an error proxying your request');
});

console.log("Proxy server 3 listening on port 8002");
proxyServer3.listen(8002);
{'fraction_non_alphanumeric': 0.1586501163692785, 'fraction_numerical': 0.027928626842513578, 'mean_word_length': 3.7583025830258303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1256021', 'n_tokens_mistral': 819, 'n_tokens_neox': 766, 'n_words': 198}