Permalink
Browse files

add a tiny sample implementation, lacks many things

  • Loading branch information...
1 parent 26caa6c commit f180602090c3262cf490458ee57e2e833ac5adb1 @richo committed Dec 14, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 app/middleware/four_one_eight.rb
@@ -0,0 +1,16 @@
+class FourOneEight
+
+ def initialize(app)
+ @app = app
+ end
+
+ def call(env)
+ if rand < .05
+ [418, {}, self]
+ else
+ @app.call(env)
+ end
+ end
+
+end
+

0 comments on commit f180602

Please sign in to comment.