Class: Faraday::Connection
- Inherits:
-
Object
- Object
- Faraday::Connection
- Defined in:
- lib/faraday/connection.rb
Overview
Reopen Faraday::Connection to add a helper to set the digest auth data.
Instance Method Summary collapse
-
#digest_auth(user, password) ⇒ Object
Adds the digest auth middleware at the top and sets the user and password.
Instance Method Details
#digest_auth(user, password) ⇒ Object
Adds the digest auth middleware at the top and sets the user and password.
13 14 15 |
# File 'lib/faraday/connection.rb', line 13 def digest_auth(user, password) builder.insert(0, Faraday::Request::DigestAuth, user, password) end |