def basic_auth(opts)
      user = opts.fetch :user
      pass = opts.fetch :pass

      auth("Basic " + Base64.strict_encode64("#{user}:#{pass}"))
    end
def basic_auth(opts)
      user = opts.fetch :user
      pass = opts.fetch :pass

      auth("Basic " + Base64.strict_encode64("#{user}:#{pass}"))
    end
Make a request with the given Basic authorization header
 @see http://tools.ietf.org/html/rfc2617
 @param [#fetch] opts
 @option opts [#to_s] :user
 @option opts [#to_s] :pass