End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTPHeader#key?
key?(key)
lib/net/http/header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/net/http/header.rb, line 191
def key?(key)
@header.key?(key.downcase.to_s)
end
true if key header exists.
See also
#initialize_http_header
#main_type
#get_fields
#proxy_basic_auth
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0