Class: RackAfterReply::Adapter::Thin
- Defined in:
- lib/rack_after_reply/adapter/thin.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#apply ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rack_after_reply/adapter/thin.rb', line 4 def apply ::Thin::Connection.module_eval do def pre_process_with_rack_after_reply callbacks = [] @request.env[RackAfterReply::CALLBACKS_KEY] = callbacks EM.next_tick { callbacks.each {|c| c.call} } pre_process_without_rack_after_reply end RackAfterReply.freedom_patch self, :pre_process end end |