basic_auth(account, password) -> [String]
[permalink][rdoc]Authorization: ヘッダを BASIC 認証用にセットします。
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.basic_auth("user", "pass") # => ["Basic dXNlcjpwYXNz"]