Module: HTTPX::Plugins::DigestAuth::OptionsMethods

Defined in:
lib/httpx/plugins/digest_auth.rb

Overview

adds support for the following options:

:digest

instance of HTTPX::Plugins::Authentication::Digest, used to authenticate requests in the session.

Instance Method Summary collapse

Instance Method Details

#option_digest(value) ⇒ Object

Raises:

  • (TypeError)


27
28
29
30
31
# File 'lib/httpx/plugins/digest_auth.rb', line 27

def option_digest(value)
  raise TypeError, ":digest must be a #{Authentication::Digest}" unless value.is_a?(Authentication::Digest)

  value
end