PHP 8.2.31
Preview: prochandler.rb Size: 682 B
/proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/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
4.17 KB lrw-r--r-- 2011-05-10 00:13:58
Edit Download
3.29 KB lrw-r--r-- 2010-03-12 08:48:10
Edit Download
974 B lrw-r--r-- 2010-11-08 20:59:01
Edit Download
2.27 KB lrw-r--r-- 2011-06-16 05:37:31
Edit Download
15.22 KB lrw-r--r-- 2011-05-15 11:55:52
Edit Download
682 B lrw-r--r-- 2009-10-02 10:45:39
Edit Download

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