Module: HTTPX::Plugins::BasicAuth::InstanceMethods
- Defined in:
- lib/httpx/plugins/basic_authentication.rb
Instance Method Summary collapse
- #basic_auth(user, password) ⇒ Object (also: #basic_authentication)
Instance Method Details
#basic_auth(user, password) ⇒ Object Also known as: basic_authentication
22 23 24 |
# File 'lib/httpx/plugins/basic_authentication.rb', line 22 def basic_auth(user, password) authentication(Authentication::Basic.new(user, password).authenticate) end |