Module: HTTPX::Plugins::BasicAuthentication
- Defined in:
- lib/httpx/plugins/basic_authentication.rb
Overview
This plugin adds helper methods to implement HTTP Basic Auth (tools.ietf.org/html/rfc7617)
gitlab.com/honeyryderchuck/httpx/wikis/Authentication#basic-authentication
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.configure(klass) ⇒ Object
16 17 18 |
# File 'lib/httpx/plugins/basic_authentication.rb', line 16 def configure(klass) klass.plugin(:authentication) end |
.load_dependencies(_klass) ⇒ Object
12 13 14 |
# File 'lib/httpx/plugins/basic_authentication.rb', line 12 def load_dependencies(_klass) require "base64" end |