method
basic_encode
basic_encode(account, password)
private
Hide source
# File lib/net/http.rb, line 1627 def basic_encode(account, password) 'Basic ' + ["#{account}:#{password}"].pack('m').delete("\r\n") end