0.1.1 • Published 12 years ago
coffee-http-proxy v0.1.1
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]