From 071a678a156dde974d8e470b659c89cb02b07b3b Mon Sep 17 00:00:00 2001 From: drbrain Date: Tue, 10 May 2011 00:13:58 +0000 Subject: * lib/webrick: Add Documentation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httpproxy.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lib/webrick/httpproxy.rb') diff --git a/lib/webrick/httpproxy.rb b/lib/webrick/httpproxy.rb index ce99c55d8f..33ce17b2d4 100644 --- a/lib/webrick/httpproxy.rb +++ b/lib/webrick/httpproxy.rb @@ -33,7 +33,24 @@ module WEBrick end end + ## + # An HTTP Proxy server which proxies GET, HEAD and POST requests. + class HTTPProxyServer < HTTPServer + + ## + # Proxy server configurations. The proxy server handles the following + # configuration items in addition to those supported by HTTPServer: + # + # :ProxyAuthProc:: Called with a request and response to authorize a + # request + # :ProxyVia:: Appended to the via header + # :ProxyURI:: The proxy server's URI + # :ProxyContentHandler:: Called with a request and resopnse and allows + # modification of the response + # :ProxyTimeout:: Sets the proxy timeouts to 30 seconds for open and 60 + # seconds for read operations + def initialize(config={}, default=Config::HTTP) super(config, default) c = @config -- cgit v1.2.3