You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@algroup.co.uk> on 2001/02/03 14:05:50 UTC

Re: AddOutputFilter enhancement

rbb@covalent.net wrote:
> 
> > > > > 1)  SetupFilterStack   Stack_name   filter1 filter2 etc
> > > > > 2)  AddFilterStack     Stack_name   extension1 extension2 etc
> > > > > 3)  SetFilterStack     Stack_name   mime-type1 mime-type2 etc
> > > >
> > > > This doesn't mean anything to me - would you like to add some
> > > > explanation to your explanation?
> > >
> > > The idea is to clean up the interface a bit.  Basically, directive #1
> > > would define a filter stack, which could then be used in the other
> > > two.  The other two directives are basically just like AddType and
> > > SetType, except instead of associating a mime-type with an extension or a
> > > handler, it associates a defined filter stack with either a mime-type or
> > > an extension.
> >
> > Oh, I see ... why is this better than <Files...>?
> 
> Because I got yelled at when I said to use <Files...>.  :-)  I was just
> trying to make people happy.

No-one's yelling about using <Files...> now - in fact, I see only
agreement.

> > I have to say I don't like the idea of associating with mime-types,
> > since those are related to the end product, and hence are likely not to
> > be unique to a particular filter stack - or did you mean to match
> > handlers, really?
> 
> I guess handlers.

Which makes AddFilterStack redundant already (do AddHandler and
SetFilterStack instead). Not that I'm advocating this approach at all
:-)

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

Re: AddOutputFilter enhancement

Posted by Bill Stoddard <bi...@wstoddard.com>.
>
> Sorry, but I can`t type any more on this crappy connection
>

At ApacheCon in London, we had maybe 20 folks connected to an Airport which was connected to a 56k
dial-up.  It couldn't be
-that- bad :-)


Re: AddOutputFilter enhancement

Posted by Joshua Slive <sl...@finance.commerce.ubc.ca>.
On Sat, 3 Feb 2001, Ben Laurie wrote:
> > > Oh, I see ... why is this better than <Files...>?
> >
> > Because I got yelled at when I said to use <Files...>.  :-)  I was just
> > trying to make people happy.
>
> No-one's yelling about using <Files...> now - in fact, I see only
> agreement.
>
Sorry, I`m just dropping in on this discussion for a second, and then I`ll
be disconnected again for a couple days.

I don`t have any problem with the 'files' type interface, but I should
note that it is not how the rest of the Apache configuration works.  In
particular, most configuration of meta-information for files is performed
by designating `extensions`.  Extensions have a particular syntax, and
they are not the same as the regex being discussed.  (ie, they do not have
to be at the absolute end of the filename, because they could be followed
by other extensions with further meta-information.)

My biggest concern is that AddOutputfilter go away, because it conflicts
baddly with the other Add... type directives.  If I was designing the
replacement, I would use something as close as possible to the
AddHandler, Sethandler syntax that already exists.  Please don`t make up
some new syntax without a very good reason.

Sorry, but I can`t type any more on this crappy connection

Joshua.