Method: HTTPClient::ProxyAuth#filter_request

Defined in:
lib/httpclient.rb

#filter_request(req) ⇒ Object



662
663
664
665
666
667
668
669
# File 'lib/httpclient.rb', line 662

def filter_request(req)
  @authenticator.each do |auth|
    if cred = auth.get(req)
      req.header.set('Proxy-Authorization', auth.scheme + " " + cred)
      return
    end
  end
end