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, = {}) @binnacle_request_headers = [:headers] @binnacle_backup_url = url @binnacle_action_name = action_name # remember this for compact logging @binnacle_request_headers = [:headers] @binnacle_request_data = [:body] orig_http_request(url, action_name, ) end |
#orig_http_request ⇒ Object
7 |
# File 'lib/binnacle/http_logging/adapters/ethon.rb', line 7 alias_method :orig_http_request, :http_request |