Method: Mechanize::HTTP::Agent#response_log
- Defined in:
- lib/mechanize/http/agent.rb
permalink #response_log(response) ⇒ Object
[View source]
968 969 970 971 972 973 974 975 976 977 |
# File 'lib/mechanize/http/agent.rb', line 968 def response_log response return unless log log.info("status: #{response.class} #{response.http_version} " \ "#{response.code} #{response.}") response.each_header do |k, v| log.debug("response-header: #{k} => #{v}") end end |