Class: Restify::Adapter::EM::ConnectionPool

Inherits:
Object
  • Object
show all
Defined in:
lib/restify/adapter.rb

Class Method Summary collapse

Class Method Details

.connectionsObject



67
68
69
# File 'lib/restify/adapter.rb', line 67

def connections
  @connections ||= {}
end

.get(uri) ⇒ Object



60
61
62
63
64
# File 'lib/restify/adapter.rb', line 60

def get(uri)
  connections[uri.origin] ||= begin
    EventMachine::HttpRequest.new(uri.origin)
  end
end