lib/httpx/plugins/authentication.rb in httpx-0.4.0 vs lib/httpx/plugins/authentication.rb in httpx-0.4.1
- old
+ new
@@ -1,11 +1,13 @@
# frozen_string_literal: true
module HTTPX
module Plugins
#
- # This plugin adds a shim #authentication method to the session, which will fill
+ # This plugin adds a shim +authentication+ method to the session, which will fill
# the HTTP Authorization header.
+ #
+ # https://gitlab.com/honeyryderchuck/httpx/wikis/Authentication#authentication
#
module Authentication
module InstanceMethods
def authentication(token)
headers("authorization" => token)