Class: Excon::Socket

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

Instance Method Summary collapse

Instance Method Details

#connect_with_loggingObject



5
6
7
8
9
10
# File 'lib/http_event_logger/adapter/excon.rb', line 5

def connect_with_logging
  host = @data[:proxy] ? @data[:proxy][:host] : @data[:host]
  port = @data[:proxy] ? @data[:proxy][:port] : @data[:port]
  HttpEventLogger::Event::Connection.new(host, port)
  connect_without_logging
end