End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTPHeader#each_key
each_key
lib/net/http/header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/http/header.rb, line 152
def each_name(&block) #:yield: +key+
block_given? or return enum_for(__method__) { @header.size }
@header.each_key(&block)
end
Alias of #each_name
Iterates through the header names in the header, passing each header name to the code block.
Returns an enumerator if no block is given.
See also
#each_name
#each_header
#each_capitalized_name
#each_value
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1