You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by rb...@covalent.net on 2000/11/20 16:59:03 UTC
SetFilter
SetFilter is the directive I added late Friday night and modified early
Saturday morning. Originally it used the mime-type to setup a filter
chain. Now, it uses a handler. The problem with this is that 99% of the
files use the same handler, default_handler.
This needs to be based on either Mime-type or file extensions, because the
handler just isn't descriptive enough anymore. I am setting this back to
mime-type for now, and we will deal with it after the alpha.
Ryan
_______________________________________________________________________________
Ryan Bloom rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------
Re: SetFilter
Posted by rb...@covalent.net.
> I figured you would realize that eventually ;-)
>
> My complaint was that the docs were inconsistent, but you fixed the
> code instead of the docs. I think it is a good idea to have filters
> selectable by mime type, but I think the primary way of doing it
> should be by file/location. Judging from your ApacheToday article,
> I thought that is how it was working.
Patches coming all around. Currently (before the SetFilter directive was
added), the way it worked was you would do:
AddOutputFitler INCLUDES
in your config file. Generally this would go in a Directory or Files
container, so it would all just work. People disliked that when I
committed it. They wanted a different syntax and a different method for
assigning filters. SetFilter was an attempt at fixing that.
> Perhaps we could have a more enlightened discussion about this if you took
> some of your copious amounts of free time and wrote a htdocs/filters.html
> which describes how you think the whole thing will work.
I'll try to get to it as soon as I roll the alpha, or over Thanksgiving,
or next week..... :-)
Ryan
_______________________________________________________________________________
Ryan Bloom rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------
Re: SetFilter
Posted by Joshua Slive <sl...@finance.commerce.ubc.ca>.
On Mon, 20 Nov 2000 rbb@covalent.net wrote:
>
> SetFilter is the directive I added late Friday night and modified early
> Saturday morning. Originally it used the mime-type to setup a filter
> chain. Now, it uses a handler. The problem with this is that 99% of the
> files use the same handler, default_handler.
>
> This needs to be based on either Mime-type or file extensions, because the
> handler just isn't descriptive enough anymore. I am setting this back to
> mime-type for now, and we will deal with it after the alpha.
>
I figured you would realize that eventually ;-)
My complaint was that the docs were inconsistent, but you fixed the
code instead of the docs. I think it is a good idea to have filters
selectable by mime type, but I think the primary way of doing it
should be by file/location. Judging from your ApacheToday article,
I thought that is how it was working.
Perhaps we could have a more enlightened discussion about this if you took
some of your copious amounts of free time and wrote a htdocs/filters.html
which describes how you think the whole thing will work.
Joshua.