Class: Thin::Async::Test::Callback
- Inherits:
-
Object
- Object
- Thin::Async::Test::Callback
- Defined in:
- lib/thin/async/test.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
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
10 11 12 |
# File 'lib/thin/async/test.rb', line 10 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
10 11 12 |
# File 'lib/thin/async/test.rb', line 10 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/thin/async/test.rb', line 10 def status @status end |
Instance Method Details
#call(args) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/thin/async/test.rb', line 12 def call args @status, @headers, deferred_body = args @body = "" deferred_body.each {|s| @body << s } deferred_body.callback { EM.stop } end |