Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@chalkers
Created May 10, 2010 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalkers/395901 to your computer and use it in GitHub Desktop.
Save chalkers/395901 to your computer and use it in GitHub Desktop.
module Rack
class UDPLoggerThingy
def initialize app, options = { }
@app = app
end
def call env
status, headers, body = @app.call(env)
#Do shit here
#http://rack.rubyforge.org/doc/classes/Rack/Request.html
[status, headers, body]
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment