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



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

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



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

alias orig_create_socket create_socket