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#delete
delete(key)
lib/net/http/header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/http/header.rb, line 186
def delete(key)
@header.delete(key.downcase.to_s)
end
Removes a header field, specified by case-insensitive key.
See also
#content_type=
#each
#content_type
#each_capitalized
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1