module HTTPX::Plugins::Auth::RequestMethods

  1. lib/httpx/plugins/auth.rb

Methods

Public Instance

  1. authorize

Public Instance methods

authorize(auth_value)
[show source]
   # File lib/httpx/plugins/auth.rb
91 def authorize(auth_value)
92   if (auth_type = @options.auth_header_type)
93     auth_value = "#{auth_type} #{auth_value}"
94   end
95 
96   @headers.add("authorization", auth_value)
97 end