[Nitro] [PATCH] first attempt for *new* mongrel-adapter

Alexander Lazic al-nitrogen at none.at
Thu Aug 17 04:52:34 EDT 2006


@George: how about to add this patch to main repo ;-)

---
On Sam 05.08.2006 15:22, Alexander Lazic wrote:
>Hi,
>
>attached the first attempt to mongrelify the adapter ;-)
>
>At the moment i see some pitfalls:
>
>1.) i have *borrow* some code from lib/nitro/cgi.rb because i haven't
>    found a easy way to get the header from
>    Cgi.response_headers(context).
>    This methode return the headers as string and i don't like to make
>    hash=>string=>hash :-(
>    @George: howabout to add a methode Cgi.response_headers_as_hash or
>    is there a easier way in ruby which i don't know?!
>
>2.) Are in server.options also the --debug flag from the commandline?
>3.) It's a quick hack from a ruby newbie threfore somethings could be
>    *better* ;-)
>
>I'am not sure if the Mongrel::Configurator is the *best* or preferd way
>to setup the mongrel but i hope somone can us help in this issue ;-)))
>
>Please tell me your thoughts ;-)
---

Regards

Alex


More information about the Nitro-general mailing list