From: Patrick May Date: 2004-08-24T04:33:12+09:00 Subject: Re: Idea: Webshare Hello, On Saturday, August 21, 2004, at 06:17 PM, Kirk Haines wrote: > You know, this is one thing I definitely agree with. In Iowa, I have > an > Iowa::Request that encapsulates the request. However, it actually also > encapsulates the response, and I've found it to be a very natural > thing that > the same object that brings the request into the app also carries the > response back out of it. > > The Iowa::Request is modeled very closely on the mod_ruby > Apache::Request, > mostly because it seems like a good, effective, familiar model, and > doing so > helped me avoid reimplementing the wheel. I was checking out Iowa. It looks like you've done alot of work to make Iowa run across multiple servers. It looked pretty nice :-) I am working on a model for supporting multiple web servers that is similar to DBI (in my head, at least). The CGI object would provide the useful methods that make building web apps easier. Each server would have a "CGD" that actually provided the necessary common functionality. Different environments may also have different ways of embedding the application, just like you have iowa_fcgi.rb, iowa_webrick.rb, and mod_iowa.rb. I'm planning on writing a cgi script and a set of webunit tests, so that I can start writing CGDs for different servers and test that things are working. Since you've had experience with solving this problem, I'm curious about your opinion. Does this sound like a productive way of attacking this problem? Cheers, Patrick