Class: Stark::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/stark/http.rb

Defined Under Namespace

Classes: ClientTransport

Constant Summary collapse

VERSION =
'1.0.0'
HTTP_USER_AGENT =
"#{self.name} #{VERSION} - Ruby #{RUBY_VERSION}"

Class Method Summary collapse

Class Method Details

.open(url, interface) ⇒ Object



59
60
61
62
63
# File 'lib/stark/http.rb', line 59

def self.open(url, interface)
  trans = ClientTransport.new(url)
  proto = Thrift::BinaryProtocolFactory.new.get_protocol trans
  interface.new proto, proto
end