module HTTPX::Plugins::BasicAuthentication::InstanceMethods

  1. lib/httpx/plugins/basic_authentication.rb

Methods

Public Instance

  1. basic_authentication

Public Instance Aliases

basic_auth -> basic_authentication

Public Instance methods

basic_authentication (user, password)
[show source]
   # File lib/httpx/plugins/basic_authentication.rb
17 def basic_authentication(user, password)
18   authentication("Basic #{Base64.strict_encode64("#{URI.escape(user)}:#{URI.escape(password)}")}")
19 end