mod_ruby and RAW_POST_BODY

Tom de Grunt <[email protected]> Mon, 10 Sep 2007 19:28:17 +0200
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hello,

I'm looking for some help. We're using Apache2 and mod_ruby and  
basically wrote a simple dispatcher, which is in essence not more than:
module Test
   class Dispatcher
     include Singleton
     def handler(request)
	
     end
   end
end

In the handler method I'm trying to read the raw post body as well as  
the request parameters.
So far I've found no clean way to do this. Does somebody have any  
suggestions?

Regards,
Tom.

PS. This is the Apache2 configuration:

   AliasMatch ^/test(/.*)?$ "/data/test/htdocs$1"
   <Directory "/data/test/htdocs">
      <FilesMatch "\.(rhtml|rhtmlx)">
        SetHandler ruby-object
        RubyHandler Test::Dispatcher.instance
        RubyOption config /data/test/ruby/config.yml
        RubyOption name test
      </FilesMatch>
   </Directory>