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