Method: Protocol::HTTP::Headers::Merged#each

Defined in:
lib/protocol/http/headers.rb

#each {|String, String| ... } ⇒ Object

Yields:

  • (String, String)

    header key (lower case) and value (as string).



249
250
251
252
253
254
255
# File 'lib/protocol/http/headers.rb', line 249

def each(&block)
  @all.each do |headers|
    headers.each do |key, value|
      yield key.downcase, value.to_s
    end
  end
end