%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/cpanel/ea-ruby24/root/usr/share/ri/system/WEBrick/HTTPProxyServer/
Upload File :
Create Path :
Current File : //opt/cpanel/ea-ruby24/root/usr/share/ri/system/WEBrick/HTTPProxyServer/cdesc-HTTPProxyServer.ri

U:RDoc::NormalClass[iI"HTTPProxyServer:ETI"WEBrick::HTTPProxyServer;TI"HTTPServer;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"DAn HTTP Proxy server which proxies GET, HEAD and POST requests.;To:RDoc::Markup::BlankLineo;	;[I"%To create a simple proxy server:;T@o:RDoc::Markup::Verbatim;[I"require 'webrick'
;TI"!require 'webrick/httpproxy'
;TI"
;TI"5proxy = WEBrick::HTTPProxyServer.new Port: 8000
;TI"
;TI"'trap 'INT'  do proxy.shutdown end
;TI"'trap 'TERM' do proxy.shutdown end
;TI"
;TI"proxy.start
;T:@format0o;	;[I"6See ::new for proxy-specific configuration items.;T@S:RDoc::Markup::Heading:
leveli:	textI" Modifying proxied responses;T@o;	;[I"OTo modify content the proxy server returns use the +:ProxyContentHandler+ ;TI"option:;T@o;;[
I""handler = proc do |req, res|
;TI"3  if res['content-type'] == 'text/plain' then
;TI"5    res.body << "\nThis content was proxied!\n"
;TI"  end
;TI"	end
;TI"
;TI"
proxy =
;TI"L  WEBrick::HTTPProxyServer.new Port: 8000, ProxyContentHandler: handler;T;0:
@fileI"lib/webrick/httpproxy.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I"
class;T[[:public[[I"new;TI"lib/webrick/httpproxy.rb;T[:protected[[:private[[I"
instance;T[[;[[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[@3I"WEBrick;FcRDoc::NormalModule

Zerion Mini Shell 1.0