lib/httpx/plugins/basic_authentication.rb in httpx-0.4.0 vs lib/httpx/plugins/basic_authentication.rb in httpx-0.4.1
- old
+ new
@@ -1,14 +1,15 @@
# frozen_string_literal: true
module HTTPX
module Plugins
#
- # This plugin adds helper methods to implement HTTP Basic Auth
- # https://tools.ietf.org/html/rfc7617
+ # This plugin adds helper methods to implement HTTP Basic Auth (https://tools.ietf.org/html/rfc7617)
#
+ # https://gitlab.com/honeyryderchuck/httpx/wikis/Authentication#basic-authentication
+ #
module BasicAuthentication
- def self.load_dependencies(klass, *)
+ def self.load_dependencies(klass)
require "base64"
klass.plugin(:authentication)
end
module InstanceMethods