Hi, I am tryinig to work on the Mongrel examples. I am trying to modify the HttpResponse. def process(request, response) response.start do |head,out| if request.params["REQUEST_METHOD"] == OPTIONS" else end end One can detect that the request is OPTIONS like this, but how does one generate the custom response by using HttpResponse. Please help. Shubham
On Wed, 2006-08-02 at 16:08 +0530, Shubham Singal wrote:> Hi, > > I am tryinig to work on the Mongrel examples. I am trying to modify > the HttpResponse. >Like this: out.write("my stuff") That''s it. The out param is just a IO object you write your response to and then Mongrel packs it up and goes. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?