0.1.1 • Published 11 years ago

coffee-http-proxy v0.1.1

Weekly downloads
14
License
-
Repository
github
Last release
11 years ago

CoffeeScript HTTP Proxy

Simple HTTP proxy server module.

Modules are written in CoffeeScript. Proxy module itself is only about 100 lines. (See src/proxy.coffee.)

The proxy module supports:

  • Proxy HTTP and HTTPS protocols
  • Proxying via proxy server
  • Customize destination, next proxy or reject according to request header
  • Customize logging

Usage

proxy = require 'coffee-http-proxy'

server = proxy.createServer()

server.listen 8000, ->
  console.log 'Listening on port', 8000
var proxy = require('coffee-http-proxy');

var server = proxy.createServer();

server.listen(8000, function() {
  console.log('Listening on port', 8000);
});

For detail usage, see src/simple-proxy.coffee.

Simple Proxy Server

Simple proxy server with command line options and logging feature.

node lib/simple-proxy [--port 8000] [--proxy host:port] [--verbose]
0.1.1

11 years ago

0.1.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago