Class: HTTP::Connection
- Inherits:
-
Object
- Object
- HTTP::Connection
- Defined in:
- lib/httplog/adapters/http.rb
Instance Method Summary collapse
-
#initialize(req, options) ⇒ Connection
constructor
A new instance of Connection.
- #orig_initialize ⇒ Object
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, ) HttpLog.log_connection(req.uri.host, req.uri.port) if HttpLog.url_approved?(req.uri) orig_initialize(req, ) end |
Instance Method Details
#orig_initialize ⇒ Object
45 |
# File 'lib/httplog/adapters/http.rb', line 45 alias orig_initialize initialize |