Class: Connection::HTTP

### Home Classes Methods

### In Files

- lib/thrift_client/connection/http.rb

### Parent

Connection::Base

### Methods

- #connect!

### Files

- CHANGELOG
- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- ThriftClient
- ThriftClient::NoServersAvailable
- ThriftClient::Simple
- ThriftClient::Simple::ComplexType
- ThriftClient::Simple::ComplexType::Extends
- ThriftClient::Simple::ComplexType::Includes
- ThriftClient::Simple::Field
- ThriftClient::Simple::ThriftException
- ThriftClient::Simple::ThriftService
- ThriftClient::Simple::ThriftStruct
- ThriftClient::Simple::ThriftStruct::Extend
- ThriftClient::Simple::ThriftStruct::Include
- Thrift
- Thrift::BaseTransport
- Thrift::BufferedTransport
- Thrift::Client
- Thrift::EventMachineConnection
- Thrift::EventMachineTransport
- Thrift::FramedTransport
- Connection
- Connection::Base
- Connection::Factory
- Connection::HTTP
- Connection::Socket
- AbstractThriftClient
- AbstractThriftClient::Server

No matching classes.

# Connection::HTTP

### Public Instance Methods

connect!() click to toggle source

    # File lib/thrift_client/connection/http.rb, line 3
    def connect!
      uri = parse_server(@server)
      @transport = Thrift::HTTPClientTransport.new(@server)
      http = Net::HTTP.new(uri.host, uri.port)
      http.use_ssl = uri.scheme == "https"
      http.get(uri.path)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.