Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Net::HTTPHeader#basic_encode
basic_encode(account, password)
lib/net/http/header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/net/http/header.rb, line 960
def basic_encode(account, password)
'Basic ' + ["#{account}:#{password}"].pack('m0')
end
No documentation available