Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTPHeader#capitalize
capitalize(name)
lib/net/http/header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http/header.rb, line 493
def capitalize(name)
name.to_s.split(/-/).map {|s| s.capitalize }.join('-')
end
No documentation available