You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1998/11/09 18:38:45 UTC
Re: cvs commit: apache-1.3/src/modules/standard mod_actions.c
On 8 Nov 1998 fielding@hyperreal.org wrote:
> I would have preferred to use a configurable table for new methods,
> but the current API is too dependent on methods being represented as
> a bitmask. We need to rethink this in the next major server version.
I suggest that during config modules are required to register all the
methods they will use, and the core returns a pointer/integer/whatever
which can be used at run-time to figure out what method a request is.
(Hide that test in a macro/inline...) This allows for a perfect-hash of
the common methods, and allows for extensability.
I don't think the bitmask is all that important to keep...
Dean