Iterates through the header names and values, passing in the name and value to the code block supplied.
Returns an enumerator if no block is given.
Example:
response.header.each_header {|key,value| puts "#{key} = #{value}" }
Iterates through the header names in the header, passing each header name to the code block.
Returns an enumerator if no block is given.
Iterates through header values, passing each value to the code block.
Returns an enumerator if no block is given.
As for each_header
, except the keys are provided in capitalized form.
Note that header names are capitalized systematically; capitalization may not match that used by the remote HTTP
server in its response.
Returns an enumerator if no block is given.
Returns a content type string such as “text”. This method returns nil if Content-Type: header field does not exist.
UNTESTED
Visit all subnodes of self
recursively
Adds a maker to the set of supported makers