Class: Faraday::Request::BasicAuthentication

Inherits:
Object
  • Object
show all
Defined in:
lib/faraday/request/basic_authentication.rb

Class Method Summary collapse

Class Method Details

.header(login, pass) ⇒ Object

Public


6
7
8
9
10
# File 'lib/faraday/request/basic_authentication.rb', line 6

def self.header(, pass)
  value = Base64.encode64([, pass].join(':'))
  value.gsub!("\n", '')
  super(:Basic, value)
end