Class: HTTParty::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/sasquatch/http_party.rb

Instance Method Summary collapse

Instance Method Details

#auth_headersObject



3
4
5
# File 'lib/sasquatch/http_party.rb', line 3

def auth_headers
  credentials[:headers]
end

#setup_digest_authObject



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