module HTTPX::Plugins::Auth::InstanceMethods

  1. lib/httpx/plugins/auth.rb

Methods

Public Instance

  1. authorization
  2. bearer_auth

Public Instance methods

authorization(token)
[show source]
   # File lib/httpx/plugins/auth.rb
14 def authorization(token)
15   with(headers: { "authorization" => token })
16 end
bearer_auth(token)
[show source]
   # File lib/httpx/plugins/auth.rb
18 def bearer_auth(token)
19   authorization("Bearer #{token}")
20 end