Module: HTTPX::Plugins::NTLMAuth::OptionsMethods

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

Instance Method Summary collapse

Instance Method Details

#option_ntlm(value) ⇒ Object

Raises:

  • (TypeError)


20
21
22
23
24
# File 'lib/httpx/plugins/ntlm_auth.rb', line 20

def option_ntlm(value)
  raise TypeError, ":ntlm must be a #{Authentication::Ntlm}" unless value.is_a?(Authentication::Ntlm)

  value
end