Method: Faraday::Connection#basic_auth
- Defined in:
- lib/faraday/connection.rb
#basic_auth(login, pass) ⇒ void
This method returns an undefined value.
Sets up the Authorization header with these credentials, encoded with base64.
297 298 299 |
# File 'lib/faraday/connection.rb', line 297 def basic_auth(login, pass) (:basic_auth, login, pass) end |