module Net::HTTPHeader

Public Instance Methods

digest_auth(username, password, response) click to toggle source
# File lib/httparty/net_digest_auth.rb, line 6
def digest_auth(username, password, response)
  authenticator = DigestAuthenticator.new(
    username,
    password,
    @method,
    @path,
    response
  )

  authenticator.authorization_header.each do |v|
    add_field('Authorization', v)
  end

  authenticator.cookie_header.each do |v|
    add_field('Cookie', v)
  end
end