PHP 8.2.31
Preview: prochandler.rb Size: 695 B
//proc/thread-self/root/opt/alt/ruby18/lib64/ruby/1.8/webrick/httpservlet/prochandler.rb

# 
# prochandler.rb -- ProcHandler Class
#       
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2001 TAKAHASHI Masayoshi, GOTOU Yuuzou
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
# reserved.
#   
# $IPR: prochandler.rb,v 1.7 2002/09/21 12:23:42 gotoyuzo Exp $

require 'webrick/httpservlet/abstract.rb'

module WEBrick
  module HTTPServlet

    class ProcHandler < AbstractServlet
      def get_instance(server, *options)
        self
      end  

      def initialize(proc)
        @proc = proc
      end

      def do_GET(request, response)
        @proc.call(request, response)
      end

      alias do_POST do_GET
    end

  end
end

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
1.75 KB lrw-r--r-- 2008-05-18 15:02:36
Edit Download
3.27 KB lrw-r--r-- 2008-05-28 07:16:25
Edit Download
993 B lrw-r--r-- 2008-05-18 15:02:36
Edit Download
1.40 KB lrw-r--r-- 2007-02-12 23:01:19
Edit Download
13.72 KB lrw-r--r-- 2010-05-20 07:58:00
Edit Download
695 B lrw-r--r-- 2007-02-12 23:01:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).