httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: CVS and generalising connections
Date Fri, 22 Dec 1995 13:58:06 GMT
> 
> >I'm all for getting the module API finalised first (meaning first _after_
> >installing CVS). I wasn't aware that it wasn't finalised (unless you mean this
> >connection abstraction stuff) - what's missing?
> 
> A structure element for the name of module.
> 
> My other complaint is the overloaded use of the mime-type of the file.
> Apache uses this to
> 1. Determine which handler to invoke.
> 2. What mime type to return for the data object.
> 
> These should really be separated; this would avoid the
> text/x-server-parsed-html3 hack. It would also enable content-negotation
> on CGI scripts, directories, etc; for example,
> /cgi-bin/format.html
> would be known to return text/html;
> subdira.en/
> would be known to contain English documents.
> 
> Other examples
> AddHandler cgi cgi
> 
> foobar.html.cgi  is a script that returns HTML. 
> 
> Or, in a .htaccess file
> #parse all .html files
> AddHandler include html
> 
> And if handlers are 'functions' that take parameters, then we could have
> #automatically convert .ms to html
> AddType text/html ms
> AddHandler cgi("/cgi-bin/ms2html") ms
> 
> #only parse if executable
> AddHAndler include(xbithack) html
> 
> Clearly, for compatibility we would have
> AddType text/x-server-parsed-html yyy
> equivalent to 
> AddType text/html yyy
> AddHandler include yyy
> 
>  David.

Cool. Have you also considered how this might apply to the "boxes" as we were
discussing earlier (re abstract connections)?

Did you know that Windows NT uses a cut-down Prolog to determine how to
load/link the various device driver layers?

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant        Fax:   +44 (181) 994 6472
and Technical Director      Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message