Class

WEBrick::HTTPProxyServer

Inheritance
< WEBrick::HTTPServer < ::WEBrick::GenericServer

Constants

Name   Description
HopByHop = %w( connection keep-alive proxy-authenticate upgrade proxy-authorization te trailers transfer-encoding ) Some header fields shuold not be transfered.
ShouldNotTransfer = %w( set-cookie proxy-connection )

Methods

Class

Visibility Signature
public new (config)

Instance

Visibility Signature
public choose_header (src, dst)
public do_OPTIONS (req, res)
public proxy_auth (req, res)
public proxy_connect (req, res)
public proxy_service (req, res)
public proxy_uri (req, res)
public service (req, res)
public set_cookie (src, dst)
public set_via (h)
public split_field (f)

Class Method Detail

new(config)

Instance Method Detail

choose_header(src, dst)

do_OPTIONS(req, res)

proxy_auth(req, res)

proxy_connect(req, res)

proxy_service(req, res)

proxy_uri(req, res)

service(req, res)

set_cookie(src, dst)

Net::HTTP is stupid about the multiple header fields. Here is workaround:

set_via(h)

split_field(f)