Sha256: 9f4520c064e6aa077603f4a049a8c432197d126e8a09867df69e0841555d2711

Contents?: true

Size: 286 Bytes

Versions: 10

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

module HTTPX
  module Plugins
    module Authentication
      module InstanceMethods
        def authentication(token)
          headers("authorization" => token)
        end
      end
    end
    register_plugin :authentication, Authentication
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
httpx-0.3.1 lib/httpx/plugins/authentication.rb
httpx-0.3.0 lib/httpx/plugins/authentication.rb
httpx-0.2.1 lib/httpx/plugins/authentication.rb
httpx-0.2.0 lib/httpx/plugins/authentication.rb
httpx-0.1.0 lib/httpx/plugins/authentication.rb
httpx-0.0.5 lib/httpx/plugins/authentication.rb
httpx-0.0.4 lib/httpx/plugins/authentication.rb
httpx-0.0.3 lib/httpx/plugins/authentication.rb
httpx-0.0.2 lib/httpx/plugins/authentication.rb
httpx-0.0.1 lib/httpx/plugins/authentication.rb