Class: HTTP::Connection

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

Instance Method Summary collapse

Constructor Details

#initialize(req, options) ⇒ Connection

Returns a new instance of Connection.



47
48
49
50
# File 'lib/httplog/adapters/http.rb', line 47

def initialize(req, options)
  HttpLog.log_connection(req.uri.host, req.uri.port) if HttpLog.url_approved?(req.uri)
  orig_initialize(req, options)
end

Instance Method Details

#orig_initializeObject



45
# File 'lib/httplog/adapters/http.rb', line 45

alias orig_initialize initialize