method
authorization_header
v3.0.7 -
Show latest stable
-
0 notes -
Class: ActiveResource::Connection
- 1.0.0
- 1.1.0
- 1.1.1
- 1.1.6
- 1.2.0
- 1.2.6
- 2.0.0 (0)
- 2.0.1 (0)
- 2.0.3 (0)
- 2.1.0 (-38)
- 2.2.1 (0)
- 2.3.2 (0)
- 2.3.8 (0)
- 3.0.0 (-13)
- 3.0.5 (0)
- 3.0.7 (0)
- 3.0.9 (0)
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.3 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- What's this?
authorization_header(http_method, uri)
private
Hide source
# File activeresource/lib/active_resource/connection.rb, line 225 def authorization_header(http_method, uri) if @user || @password if auth_type == :digest { 'Authorization' => digest_auth_header(http_method, uri) } else { 'Authorization' => 'Basic ' + ["#{@user}:#{@password}"].pack('m').delete("\r\n") } end else {} end end


