Class: HTTPClient::Session

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

Instance Method Summary collapse

Instance Method Details

#create_socket(host, port) ⇒ Object



47
48
49
50
51
52
# File 'lib/httplog/adapters/httpclient.rb', line 47

def create_socket(site)
  if HttpLog.url_approved?("#{site.host}:#{site.port}")
    HttpLog.log_connection(site.host, site.port)
  end
  orig_create_socket(site)
end

#orig_create_socketObject



42
# File 'lib/httplog/adapters/httpclient.rb', line 42

alias orig_create_socket create_socket