Class | Connection::HTTP |
In: |
lib/thrift_client/connection/http.rb
lib/thrift_client/connection/http.rb |
Parent: | Base |
# File lib/thrift_client/connection/http.rb, line 3 3: def connect! 4: uri = parse_server(@server) 5: @transport = Thrift::HTTPClientTransport.new(@server) 6: http = Net::HTTP.new(uri.host, uri.port) 7: http.use_ssl = uri.scheme == "https" 8: http.get(uri.path) 9: end