Module: HTTPX::Plugins::DigestAuth::InstanceMethods

Defined in:
lib/httpx/plugins/digest_auth.rb,
sig/plugins/digest_auth.rbs

Instance Method Summary collapse

Instance Method Details

#digest_auth(user, password, hashed: false) ⇒ instance

Parameters:

  • user (string)
  • password (string)
  • hashed: (Boolean) (defaults to: false)

Returns:

  • (instance)


36
37
38
# File 'lib/httpx/plugins/digest_auth.rb', line 36

def digest_auth(user, password, hashed: false)
  with(digest: Authentication::Digest.new(user, password, hashed: hashed))
end