Sha256: 10f80803c3affd3389b744f34d97540a503e721246b5bc8666488175d78e82bc
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
= EM-Proxy EventMachine Proxy DSL: - Slides from RailsConf 2009: http://bit.ly/D7oWB == Simple port forwarding proxy Proxy.start(:host => "0.0.0.0", :port => 80) do |conn| conn.server :srv, :host => "127.0.0.1", :port => 81 # modify / process request stream conn.on_data do |data| p [:on_data, data] data end # modify / process response stream conn.on_response do |backend, resp| p [:on_response, backend, resp] resp end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fizx-em-proxy-0.1.1 | README.rdoc |