Class: Excon::Socket

Inherits:
Object
  • Object
show all
Defined in:
lib/httplog/adapters/excon.rb

Instance Method Summary collapse

Instance Method Details

#connectObject



7
8
9
10
11
12
# File 'lib/httplog/adapters/excon.rb', line 7

def connect
  host = @data[:proxy] ? @data[:proxy][:host] : @data[:host]
  port = @data[:proxy] ? @data[:proxy][:port] : @data[:port]
  HttpLog.log_connection(host, port)
  orig_connect
end

#orig_connectObject



6
# File 'lib/httplog/adapters/excon.rb', line 6

alias orig_connect connect