about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEvan Weaver <eweaver@twitter.com>2009-01-31 20:46:05 -0800
committerEvan Weaver <eweaver@twitter.com>2009-01-31 20:46:05 -0800
commitcf4717de742266b4e62ad8bf075c6de974a73267 (patch)
treef1644fb82a090d31c42c1c5cf7244a0589f0c1ea
parent88d44ecd57b44cf4ac6b579d3d83d72793f0cc4b (diff)
downloadunicorn-cf4717de742266b4e62ad8bf075c6de974a73267.tar.gz
-rw-r--r--lib/mongrel.rb2
-rw-r--r--lib/mongrel/handlers.rb37
2 files changed, 0 insertions, 39 deletions
diff --git a/lib/mongrel.rb b/lib/mongrel.rb
index 07fc36f..b81f07e 100644
--- a/lib/mongrel.rb
+++ b/lib/mongrel.rb
@@ -18,8 +18,6 @@ require 'thread'
 require 'rack'
 
 # Ruby Mongrel
-require 'mongrel/cgi'
-require 'mongrel/handlers'
 require 'mongrel/tcphack'
 require 'mongrel/const'
 require 'mongrel/http_request'
diff --git a/lib/mongrel/handlers.rb b/lib/mongrel/handlers.rb
deleted file mode 100644
index 0ae3af6..0000000
--- a/lib/mongrel/handlers.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright (c) 2005 Zed A. Shaw
-# You can redistribute it and/or modify it under the same terms as Ruby.
-#
-# Additional work donated by contributors.  See http://mongrel.rubyforge.org/attributions.html
-# for more information.
-
-require 'zlib'
-require 'yaml'
-
-module Mongrel
-  #
-  # You implement your application handler with this.  It's very light giving
-  # just the minimum necessary for you to handle a request and shoot back
-  # a response.  Look at the HttpRequest and HttpResponse objects for how
-  # to use them.
-  #
-  class HttpHandler
-    attr_reader :request_notify
-    attr_accessor :listener
-
-    # This will be called by Mongrel if HttpHandler.request_notify set to *true*.
-    # You only get the parameters for the request, with the idea that you'd "bound"
-    # the beginning of the request processing and the first call to process.
-    def request_begins(params)
-    end
-
-    # Called by Mongrel for each IO chunk that is received on the request socket
-    # from the client, allowing you to track the progress of the IO and monitor
-    # the input.  This will be called by Mongrel only if HttpHandler.request_notify
-    # set to *true*.
-    def request_progress(params, clen, total)
-    end
-
-    def process(request, response)
-    end
-  end  
-end