Module: Ethon::Easy::Http

Defined in:
lib/binnacle/http_logging/adapters/ethon.rb

Instance Method Summary collapse

Instance Method Details

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



8
9
10
11
12
13
14
15
16
17
# File 'lib/binnacle/http_logging/adapters/ethon.rb', line 8

def http_request(url, action_name, options = {})
  @binnacle_request_headers = options[:headers]
  @binnacle_backup_url = url

  @binnacle_action_name = action_name # remember this for compact logging
  @binnacle_request_headers = options[:headers]
  @binnacle_request_data = options[:body]

  orig_http_request(url, action_name, options)
end

#orig_http_requestObject



7
# File 'lib/binnacle/http_logging/adapters/ethon.rb', line 7

alias_method :orig_http_request, :http_request