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.
49 50 51 52 53 54 55 |
# File 'lib/message_bus/rack/thin_ext.rb', line 49 def initialize(env, status = 200, headers = {}) @callback = env['async.callback'] @body = DeferrableBody.new @status = status @headers = headers @headers_sent = false end |