method

setup_upstream_proxy_authentication

ruby latest stable - Class: WEBrick::HTTPProxyServer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

setup_upstream_proxy_authentication(req, res, header)
private

No documentation available.

# File lib/webrick/httpproxy.rb, line 262
    def setup_upstream_proxy_authentication(req, res, header)
      if upstream = proxy_uri(req, res)
        if upstream.userinfo
          header['proxy-authorization'] =
            "Basic " + [upstream.userinfo].pack("m").delete("\n")
        end
        return upstream
      end
      return FakeProxyURI
    end