Class: Faraday::Request::BasicAuthentication
- Inherits:
-
Object
- Object
- Faraday::Request::BasicAuthentication
- Defined in:
- lib/faraday/request/basic_authentication.rb
Class Method Summary collapse
-
.header(login, pass) ⇒ Object
Public.
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(login, pass) value = Base64.encode64([login, pass].join(':')) value.gsub!("\n", '') super(:Basic, value) end |