From: Michael L. <mi...@go...> - 2002-02-08 20:02:15
|
Hi, One solution for backwards compatibility would be to minimize interaction with the Apache request internally (dir_config, pnotes, notes) whenever possible and then separate the controller from the handler. On initialization, the *any* handler could pass a request object to the controller's constructor. Under mod_perl this would continue to be an Apache request, but under FastCGI it might be SomeOther::Request implementing the requisite interface (and probably a few stubs for things that can't be replicated). I need something like this anyway, so I'm happy to do the research and/or implementation and submit a patch. I looked around a bit today, and found that Apache::Fake and Apache::Emulator are designed to do similar things, but I'd like to look into each a bit further. --Mike ----- Original Message ----- From: "Boris Zentner" <bo...@m2...> To: "T.J. Mather" <tjm...@tj...>; "pkit devel" <pag...@li...> Sent: Friday, February 08, 2002 9:00 AM Subject: Re: [Pagekit-devel] Running under Fast CGI? > > Hi, > > Am Freitag, 8. Februar 2002 00:40 schrieb T.J. Mather: > > Being able to run PageKit under FastCGI would be awesome. Having a > > request interface with handlers for CGI, mod_perl and FastCGI would be > > great. > > > > On Thu, 7 Feb 2002, Michael Lloyd wrote: > > > Questions for the Gurus: > > > How tied is Pagekit to the Apache request? > > > > It's pretty tied, but I don't think it would be too hard to replace the > > Apache request with a generic request object. > > to keep the ball rolling, here is a list of the Apache::Request methods > PageKit use. > > args > connection > content_encoding > content_type > dir_config > filename > header_in > header_only > header_out > headers_in > headers_out > new > no_cache > notes > param > path_info > pnotes > print > send_fd > send_http_header > uri > > We have also to think on the Apache::Util Apache::Cookie usw. modules, we use. > > > > > > Are there any advatages the Pagekit derives from being implemented as low > > > level handler? > > > > Also there is a module called Apache::Emulator, but i never used it or looked > at it. > > -- > cu boris > > Stilblüten aus Schreiben von Versicherungsnehmern: > Ich fuhr rückwärts eine steile Straße hinunter, durchbrach eine > Grundstücksmauer und rammte einen Bungalow. Ich konnte mich einfach > nicht mehr erinnern, wo das Bremspedal angebracht ist. > > _______________________________________________ > Pagekit-devel mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-devel > |