|
|
Choosing A Webhost: |
Re: rfc: new filtering APIs: msg#00099apache.mod-perl.devel
Geoffrey Young wrote:
Can't you just use an early request phase for that? For protocols you can use PreConnection phase. the other is when info _does_ need to come back to the calling filter, say via $filter->ctx or something. Indeed, from your requirements it looks like this filter_init has little to do with the real filter and you may want to have just filter_init without having any real filters. The problem I think (need to look deeper in the code) is that the request filter chain won't be called at all unless the body is requested by the request handlers. So your init will be missed out. But I need to do more checking, since the logic is not trivial. the second gets more complex - you need a way to associate the handler() routine with the init() routine in the handler so you can register the filter all at once. or maybe you don't if $filter->ctx is somehow magical, I dunno. all of this is requiring a pretty steep internals learning curve on my part :) I was planning to workout the second one if possible. at any rate, my thought was to prototype the first part and save the second for later, after we get filter_init working in at least some fashion. See above. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: rfc: new filtering APIs, Geoffrey Young |
|---|---|
| Next by Date: | Re: rfc: new filtering APIs, Geoffrey Young |
| Previous by Thread: | Re: rfc: new filtering APIs, Geoffrey Young |
| Next by Thread: | Re: rfc: new filtering APIs, Geoffrey Young |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |