Class: Excon::Socket

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

Instance Method Summary collapse

Methods included from HttpLogHelper

#httplog_url

Instance Method Details

#connectObject



14
15
16
17
18
19
# File 'lib/httplog/adapters/excon.rb', line 14

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

#orig_connectObject



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

alias orig_connect connect