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

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

Instance Method Summary collapse

Instance Method Details

#option_digest(value) ⇒ Object

Raises:

  • (TypeError)


24
25
26
27
28
# File 'lib/httpx/plugins/digest_auth.rb', line 24

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

  value
end