From cf4717de742266b4e62ad8bf075c6de974a73267 Mon Sep 17 00:00:00 2001 From: Evan Weaver Date: Sat, 31 Jan 2009 20:46:05 -0800 Subject: Remove abstract handler. --- lib/mongrel.rb | 2 -- lib/mongrel/handlers.rb | 37 ------------------------------------- 2 files changed, 39 deletions(-) delete mode 100644 lib/mongrel/handlers.rb 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 -- cgit v1.2.3-24-ge0c7