Module: HTTPX::Plugins::BasicAuth

Defined in:
lib/httpx/plugins/basic_auth.rb

Overview

This plugin adds helper methods to implement HTTP Basic Auth (datatracker.ietf.org/doc/html/rfc7617)

gitlab.com/os85/httpx/wikis/Auth#basic-auth

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(klass) ⇒ Object



16
17
18
# File 'lib/httpx/plugins/basic_auth.rb', line 16

def configure(klass)
  klass.plugin(:auth)
end

.load_dependencies(_klass) ⇒ Object



12
13
14
# File 'lib/httpx/plugins/basic_auth.rb', line 12

def load_dependencies(_klass)
  require_relative "auth/basic"
end