Class: Excon::Socket
- Inherits:
-
Object
- Object
- Excon::Socket
- Includes:
- HttpLogHelper
- Defined in:
- lib/httplog/adapters/excon.rb
Instance Method Summary collapse
Methods included from HttpLogHelper
Instance Method Details
#connect ⇒ Object
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_connect ⇒ Object
13 |
# File 'lib/httplog/adapters/excon.rb', line 13 alias orig_connect connect |