Class: HTTParty::Request
- Inherits:
-
Object
- Object
- HTTParty::Request
- Defined in:
- lib/sasquatch/http_party.rb
Instance Method Summary collapse
Instance Method Details
#auth_headers ⇒ Object
3 4 5 |
# File 'lib/sasquatch/http_party.rb', line 3 def auth_headers credentials[:headers] end |
#setup_digest_auth ⇒ Object
6 7 8 9 10 |
# File 'lib/sasquatch/http_party.rb', line 6 def setup_digest_auth if auth_headers @raw_request.digest_auth(username, password, {'www-authenticate' => auth_headers}) end end |