lib/httpclient/auth.rb
# Filter API implementation.  Traps HTTP request and insert
# 'Authorization' header if needed.
Filter API implementation.  Traps HTTP request and insert
'Authorization' header if needed.
Filter API implementation . Traps HTTP request and insert ' Authorization ' header if needed .
def filter_request(req)
      @authenticator.each do |auth|
        if cred = auth.get(req)
          req.header.set('Authorization', auth.scheme + " " + cred)
          return
        end
      end
    end
def filter_request ( req ) @authenticator . each do | auth | if cred = auth . get ( req ) req . header . set ( 'Authorization' , auth . scheme + " " + cred ) return end end end
Filter API implementation.
Filter API implementation .
req
<not_specific>