Public Instance methods
basic_auth(user, password)
returns a new session which will authorize requests using HTTP Basic Auth, with user and password as credentials.
[show source]
# File lib/httpx/plugins/basic_auth.rb 24 def basic_auth(user, password) 25 authorization(Authentication::Basic.new(user, password).authenticate) 26 end