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