class AsyncConnectionAdapter::AsyncHTTPResponse
convert EventMachine::HttpClient to a Net::HTTPResponse
Public Class Methods
new(client)
click to toggle source
Calls superclass method
# File lib/resthome/httparty/async_connection_adapter.rb, line 6 def initialize(client) headers = client.response_header super headers.http_version, headers.http_status, headers.http_reason @body = client.response @read = true headers.each do |k, v| self.add_field k.downcase.gsub('_', '-'), v end end