diff options
author | Ian Ownbey <imownbey@ian-ownbeys-macbook.local> | 2008-12-01 15:59:21 -0800 |
---|---|---|
committer | Ian Ownbey <imownbey@ian-ownbeys-macbook.local> | 2008-12-01 15:59:21 -0800 |
commit | 8fd2a302ca5121eca4c96ddd10f3f705a422d378 (patch) | |
tree | 54acda0a8422c10e84fb2dc2e25aa717fb454e90 | |
parent | 9c82be1259a951a8e34459b63f3ad27ea9b95a30 (diff) | |
download | unicorn-8fd2a302ca5121eca4c96ddd10f3f705a422d378.tar.gz |
-rw-r--r-- | lib/mongrel/http_request.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/mongrel/http_request.rb b/lib/mongrel/http_request.rb index e20434b..2416b04 100644 --- a/lib/mongrel/http_request.rb +++ b/lib/mongrel/http_request.rb @@ -1,21 +1,10 @@ module Mongrel # - # When a handler is found for a registered URI then this class is constructed - # and passed to your HttpHandler::process method. You should assume that - # *one* handler processes all requests. Included in the HttpRequest is a - # HttpRequest.params Hash that matches common CGI params, and a HttpRequest.body - # which is a string containing the request body (raw for now). - # # The HttpRequest.initialize method will convert any request that is larger than # Const::MAX_BODY into a Tempfile and use that as the body. Otherwise it uses # a StringIO object. To be safe, you should assume it works like a file. - # - # The HttpHandler.request_notify system is implemented by having HttpRequest call - # HttpHandler.request_begins, HttpHandler.request_progress, HttpHandler.process during - # the IO processing. This adds a small amount of overhead but lets you implement - # finer controlled handlers and filters. - # + # class HttpRequest attr_reader :body, :params @@ -53,6 +42,7 @@ module Mongrel # returns an environment which is rackable # http://rack.rubyforge.org/doc/files/SPEC.html + # copied directly from racks mongrel handler def env env = params.clone env.delete "HTTP_CONTENT_TYPE" |