Method: Thin::AsyncResponse#initialize
- Defined in:
- lib/message_bus/rack/thin_ext.rb
#initialize(env, status = 200, headers = {}) ⇒ AsyncResponse
Returns a new instance of AsyncResponse.
44 45 46 47 48 49 50 |
# File 'lib/message_bus/rack/thin_ext.rb', line 44 def initialize(env, status = 200, headers = {}) @callback = env['async.callback'] @body = DeferrableBody.new @status = status @headers = headers @headers_sent = false end |