Current Directory:
/opt/cpanel/ea-ruby24/root/usr/share/ri/system/WEBrick/HTTPServlet/ProcHandler
Upload
Create File
File Name
Size
Actions
cdesc-ProcHandler.ri
877 bytes
Edit
|
Delete
|
Rename
|
Download
U:RDoc::NormalClass[iI"ProcHandler:ETI"&WEBrick::HTTPServlet::ProcHandler;TI"*WEBrick::HTTPServlet::AbstractServlet;To:RDoc::Markup::Document:@parts[o;;[ o:RDoc::Markup::Paragraph;[I"AMounts a proc at a path that accepts a request and response.;To:RDoc::Markup::BlankLine o; ;[I"IInstead of mounting this servlet with WEBrick::HTTPServer#mount use ;TI"$WEBrick::HTTPServer#mount_proc:;T@o:RDoc::Markup::Verbatim;[ I")server.mount_proc '/' do |req, res| ;TI" res.body = 'it worked!' ;TI" res.status = 200 ;TI"end;T:@format0: @fileI"+lib/webrick/httpservlet/prochandler.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@I"WEBrick::HTTPServlet;TcRDoc::NormalModule
Save Changes