You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jeff Trawick <tr...@attglobal.net> on 2002/10/02 15:57:00 UTC

Re: Multiple handlers within a module?

Justin Erenkrantz <je...@apache.org> writes:

> On Wed, Sep 25, 2002 at 03:24:32PM -0700, Will Hartung wrote:
> > It is not at all clear to me using the new 2.0 modules how I associate the
> > different names to our module. I see the ap_hook_handler(), but it only
> > wants the function, and doesn't seem to have a way of binding a name to that
> > function.
> 
> It doesn't.  All handlers are invoked on all requests.  So, there is
> no relationship between the invocation of a handler and whether it
> needs to run.  The handler must check whether its handler string is
> the same as r->handler.  If not, it is expected to return DECLINED.
> 
> > I also noticed within the mod_example, that they check the actual handler
> > name when the function is called. Is that necessary? Is that the actual
> > mechanism?
> 
> Yes.  -- justin

This thread is definitely a FAQ. Anybody up to sticking it here?

  http://httpd.apache.org/docs-2.0/developer/modules.html

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...