Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • webrick/httpservlet/prochandler.rb

Class/Module Index [+]

Quicksearch

WEBrick::HTTPServlet::ProcHandler

Public Class Methods

new(proc) click to toggle source
 
               # File webrick/httpservlet/prochandler.rb, line 21
def initialize(proc)
  @proc = proc
end
            

Public Instance Methods

do_GET(request, response) click to toggle source
 
               # File webrick/httpservlet/prochandler.rb, line 25
def do_GET(request, response)
  @proc.call(request, response)
end
            
Also aliased as: do_POST
do_POST(request, response) click to toggle source
Alias for: do_GET
get_instance(server, *options) click to toggle source
 
               # File webrick/httpservlet/prochandler.rb, line 17
def get_instance(server, *options)
  self
end