Module: HTTPX::Plugins::DigestAuthentication::OptionsMethods

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

Instance Method Summary collapse

Instance Method Details

#option_digest(value) ⇒ Object

Raises:

  • (TypeError)


29
30
31
32
33
# File 'lib/httpx/plugins/digest_authentication.rb', line 29

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

  value
end