[Mongrel] Modifying Mongrel Examples

Shubham Singal shubham.singal at gmail.com
Wed Aug 2 06:38:59 EDT 2006


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


More information about the Mongrel-users mailing list