class Faraday::Connection

def basic_auth(login, pass)

Returns nothing.

# => "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="
conn.headers['Authorization']
conn.basic_auth 'Aladdin', 'open sesame'

Examples

pass - The authentication password.
login - The authentication login.

with base64.
Public: Sets up the Authorization header with these credentials, encoded
def basic_auth(login, pass)
  set_authorization_header(:basic_auth, login, pass)
end