Class: Concur::HttpResponseWrapper
- Inherits:
-
Object
- Object
- Concur::HttpResponseWrapper
- Defined in:
- lib/futures/event_machine_future.rb
Instance Method Summary collapse
- #body ⇒ Object
- #headers ⇒ Object
-
#initialize(em_http) ⇒ HttpResponseWrapper
constructor
A new instance of HttpResponseWrapper.
- #status ⇒ Object
Constructor Details
#initialize(em_http) ⇒ HttpResponseWrapper
Returns a new instance of HttpResponseWrapper.
91 92 93 |
# File 'lib/futures/event_machine_future.rb', line 91 def initialize(em_http) @em_http = em_http end |
Instance Method Details
#body ⇒ Object
99 100 101 |
# File 'lib/futures/event_machine_future.rb', line 99 def body @em_http.response end |
#headers ⇒ Object
95 96 97 |
# File 'lib/futures/event_machine_future.rb', line 95 def headers @em_http.response_header end |
#status ⇒ Object
103 104 105 |
# File 'lib/futures/event_machine_future.rb', line 103 def status @em_http.response_header.status end |