Module: HTTPX::Plugins::Auth::OptionsMethods
- Defined in:
- lib/httpx/plugins/auth.rb
Instance Method Summary collapse
- #option_auth_header_type(value) ⇒ Object
- #option_auth_header_value(value) ⇒ Object
- #option_generate_auth_value_on_retry(value) ⇒ Object
Instance Method Details
#option_auth_header_type(value) ⇒ Object
24 25 26 |
# File 'lib/httpx/plugins/auth.rb', line 24 def option_auth_header_type(value) value end |
#option_auth_header_value(value) ⇒ Object
20 21 22 |
# File 'lib/httpx/plugins/auth.rb', line 20 def option_auth_header_value(value) value end |
#option_generate_auth_value_on_retry(value) ⇒ Object
28 29 30 31 32 |
# File 'lib/httpx/plugins/auth.rb', line 28 def option_generate_auth_value_on_retry(value) raise TypeError, "`:generate_auth_value_on_retry` must be a callable" unless value.respond_to?(:call) value end |