Class: ThriftHelpers::Connection::HTTP
- Defined in:
- lib/thrift_client/connection/http.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #connect! ⇒ Object
-
#initialize(*args) ⇒ HTTP
constructor
A new instance of HTTP.
- #open? ⇒ Boolean
Methods inherited from Base
Constructor Details
Instance Method Details
#connect! ⇒ Object
11 12 13 14 15 |
# File 'lib/thrift_client/connection/http.rb', line 11 def connect! http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = uri.scheme == "https" http.get(uri.path) end |
#open? ⇒ Boolean
17 18 19 |
# File 'lib/thrift_client/connection/http.rb', line 17 def open? true end |