Class: Rack::Async2Sync::AsyncResponse
- Inherits:
-
Object
- Object
- Rack::Async2Sync::AsyncResponse
- Defined in:
- lib/rack/async2sync.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#[](response) ⇒ Object
used to register the response given by async_sinatra in the ‘async.callback’ env variable.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
35 36 37 |
# File 'lib/rack/async2sync.rb', line 35 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
35 36 37 |
# File 'lib/rack/async2sync.rb', line 35 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
35 36 37 |
# File 'lib/rack/async2sync.rb', line 35 def status @status end |
Instance Method Details
#[](response) ⇒ Object
used to register the response given by async_sinatra in the ‘async.callback’ env variable.
37 38 39 40 |
# File 'lib/rack/async2sync.rb', line 37 def [](response) @status, @headers, @body = response EM.stop end |