Module: Ethon::Easy::Http

Defined in:
lib/httplog/adapters/ethon.rb

Instance Method Summary collapse

Instance Method Details

#http_request(url, action_name, options = {}) ⇒ Object



10
11
12
13
# File 'lib/httplog/adapters/ethon.rb', line 10

def http_request(url, action_name, options = {})
  @http_log = options.merge(method: action_name, url: url) # remember this for compact logging
  orig_http_request(url, action_name, options)
end

#orig_http_requestObject



9
# File 'lib/httplog/adapters/ethon.rb', line 9

alias orig_http_request http_request