method

mount_proc

ruby latest stable - Class: WEBrick::HTTPServer
mount_proc(dir, proc=nil, &block)
public

Mounts proc or block on dir and calls it with a WEBrick::HTTPRequest and WEBrick::HTTPResponse