method

each_header

v1_9_3_392 - Show latest stable - Class: Net::HTTPHeader
each_header()
public

Iterates through the header names and values, passing in the name and value to the code block supplied.

Example:

response.header.each_header {|key,value| puts "#{key} = #{value}" }