You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rodent of Unusual Size <Ke...@Golux.Com> on 2000/08/09 22:52:16 UTC
Extension methods
Currently there's a lot of dependency on hard-coded methods
in the server. That is, the Allow: response field can only
list methods the server hardcodedly knows about, and likewise
for <Limit> and <LimitExcept>.
The <Limit> issue is a bit thorny to address, but allowing
modules to declare extension methods they'll handle, and having
them appear in the Allow field, is actually quite simple.
It involves the addition of an array_header to the response_rec,
and a new API routine.
I've prototyped this on my box, but it's not quite clean yet.
Shall I submit it as a patch, just go ahead and commit it,
or would someone like to veto the concept before I go to the
trouble? :-D
--
#ken P-)}
Ken Coar <http://Golux.Com/coar/>
Apache Software Foundation <http://www.apache.org/>
"Apache Server for Dummies" <http://Apache-Server.Com/>
"Apache Server Unleashed" <http://ApacheUnleashed.Com/>
Re: Extension methods
Posted by Greg Stein <gs...@lyra.org>.
Please commit. The concept is 100% spot on. It is easier to comment and
iterate from CVS.
Cheers,
-g
On Wed, Aug 09, 2000 at 04:52:16PM -0400, Rodent of Unusual Size wrote:
> Currently there's a lot of dependency on hard-coded methods
> in the server. That is, the Allow: response field can only
> list methods the server hardcodedly knows about, and likewise
> for <Limit> and <LimitExcept>.
>
> The <Limit> issue is a bit thorny to address, but allowing
> modules to declare extension methods they'll handle, and having
> them appear in the Allow field, is actually quite simple.
> It involves the addition of an array_header to the response_rec,
> and a new API routine.
>
> I've prototyped this on my box, but it's not quite clean yet.
> Shall I submit it as a patch, just go ahead and commit it,
> or would someone like to veto the concept before I go to the
> trouble? :-D
> --
> #ken P-)}
>
> Ken Coar <http://Golux.Com/coar/>
> Apache Software Foundation <http://www.apache.org/>
> "Apache Server for Dummies" <http://Apache-Server.Com/>
> "Apache Server Unleashed" <http://ApacheUnleashed.Com/>
--
Greg Stein, http://www.lyra.org/
Re: Extension methods
Posted by rb...@covalent.net.
I really haven't been watching this stuff, but are we using the
http_method hook? If not, can we remove that hook. The whole purpose for
that hook was to extend the methods allowed by Apache.
Ryan
On Sat, 12 Aug 2000, Rodent of Unusual Size wrote:
> I've been looking at this issue of handling extension methods in addition
> to our hard-coded list in a lot closer detail the last few days, and it
> really does appear to be messy.
>
> We can abandon the performance gain of the known-method bitmask and
> go with a strictly string-based mechanism, or keep it and hybridise
> processing to use strings only for extension methods, or <something else>.
>
> I've been working on the hybrid approach, and it's a fairly significant
> change; new structure, new API to use it, and changes to all the places
> where the bitmask approach is used.
>
> On the other hand, it abstracts and generalises the whole idea of
> dealing with method names, and if/when we add more methods to our
> 'known method' list in the future, modules that use this API won't
> need to be recompiled (assuming we accomplish anything resembling
> binary compatibility :-).
>
> Since I've started committing stuff on this whole concept, I'll just
> keep on doing so with this approach. Be warned, though, that it'll
> touch a lot of areas.
> --
> #ken P-)}
>
> Ken Coar <http://Golux.Com/coar/>
> Apache Software Foundation <http://www.apache.org/>
> "Apache Server for Dummies" <http://Apache-Server.Com/>
> "Apache Server Unleashed" <http://ApacheUnleashed.Com/>
>
_______________________________________________________________________________
Ryan Bloom rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------
RE: Extension methods
Posted by "William A. Rowe, Jr." <wr...@lnd.com>.
> From: Rodent of Unusual Size [mailto:Ken.Coar@Golux.Com]
> Sent: Saturday, August 12, 2000 11:18 AM
>
> I've been looking at this issue of handling extension methods in addition
> to our hard-coded list in a lot closer detail the last few days, and it
> really does appear to be messy.
>
> We can abandon the performance gain of the known-method bitmask and
> go with a strictly string-based mechanism, or keep it and hybridise
> processing to use strings only for extension methods, or
> <something else>.
If we are going to stringize... is it time to take flip comments about
tokens seriously, before we add the overhead?
Bill
Re: Extension methods
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
I've been looking at this issue of handling extension methods in addition
to our hard-coded list in a lot closer detail the last few days, and it
really does appear to be messy.
We can abandon the performance gain of the known-method bitmask and
go with a strictly string-based mechanism, or keep it and hybridise
processing to use strings only for extension methods, or <something else>.
I've been working on the hybrid approach, and it's a fairly significant
change; new structure, new API to use it, and changes to all the places
where the bitmask approach is used.
On the other hand, it abstracts and generalises the whole idea of
dealing with method names, and if/when we add more methods to our
'known method' list in the future, modules that use this API won't
need to be recompiled (assuming we accomplish anything resembling
binary compatibility :-).
Since I've started committing stuff on this whole concept, I'll just
keep on doing so with this approach. Be warned, though, that it'll
touch a lot of areas.
--
#ken P-)}
Ken Coar <http://Golux.Com/coar/>
Apache Software Foundation <http://www.apache.org/>
"Apache Server for Dummies" <http://Apache-Server.Com/>
"Apache Server Unleashed" <http://ApacheUnleashed.Com/>
Re: Extension methods
Posted by rb...@covalent.net.
> I've prototyped this on my box, but it's not quite clean yet.
> Shall I submit it as a patch, just go ahead and commit it,
> or would someone like to veto the concept before I go to the
> trouble? :-D
Well, just for good measure, Ill veto the concept. :-) Kidding. Please
either post or just commit. I would prefer committing, but that's up to
you.
Ryan
_______________________________________________________________________________
Ryan Bloom rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------