[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Using Apache handlers with Subversion

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: 2003-07-19 07:42:05 CEST

--On Friday, July 18, 2003 9:33 PM -0500 Ben Collins-Sussman
<sussman@collab.net> wrote:

> I think the handlers only work on "real" files, not imaginary files.
> mod_dav_svn is serving up data from BDB in such a way as to circumvent
> the handlers. Someone who knows more about apache can explain.

Almost, but not quite. =)

The default handler in httpd will deliver a file down the pipe. However,
handlers can not be chained together - only one can be used per request.
mod_dav's handlers (which invoke mod_dav_svn's DAV hooks) service all of the
operations on the repository - for a GET request, the mod_dav handlers push
down the file data from the repository. (Note that the lack of chaining
handlers is why PHP and Subversion can't work together on the same location.)

However, output filters are what you'd want if you want to manipulate the data
in an abstract way. They can be chained on a request and are independent of
its data source. Take a look at mod_deflate or mod_include for examples of
filters. mod_python should support registration of filters, but I'm not aware
of those semantics off the top of my head. You'd have to be introduced to the
wonderful world of buckets and brigades... -- justin

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 19 07:43:00 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.