gems/ruby/2.2.0/gems/http-0.7.1/lib/http/chainable.rb
# Make a request with the given Authorization header
# @param [#to_s] value Authorization header value
Make a request with the given Authorization header
Make a request with the given Authorization header
def auth(value, opts = nil)
      return basic_auth(opts) if :basic == value
      with :authorization => value.to_s
    end
def auth ( value , opts = nil ) return basic_auth ( opts ) if :basic == value with :authorization => value . to_s end
Make a request with the given Authorization header
Make a request with the given Authorization header
# shim for deprecated auth(:basic, opts). # will be removed in 0.8.0
value
<not_specific>
opts
<not_specific>
<not_specific>
value Authorization header value
value Authorization header value