httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@lnd.com>
Subject RE: util_script headers from strings?
Date Fri, 28 Jul 2000 03:06:22 GMT
> From: dean gaudet [mailto:dgaudet-list-new-httpd@arctic.org]
> Sent: Thursday, July 27, 2000 9:43 PM
> 
> this sort of thing could/should be done with i/o filtering.

This is for pure CGI style ISAPI handlers.  While ISAPI filters
may also require some thought... this just eliminates existing
duplicate code in the mod_isapi request handler section.

MS/ISAPI differentiates a handler (provides a CGI-style response)
from their filter (acts on other responses.)

It's pretty much isolated to the "here's a string, go with it"
style of cgi, as opposed to "here's the pipe... eat it" method.

> On Thu, 27 Jul 2000, William A. Rowe, Jr. wrote:
> 
> > Does anyone have a conceptual problem with my adding this code
> > to the util_script.c source?  Resolves an issue that ISAPI
> > (and perhaps others) pass strings to the webserver, rather than
> > a buff or file, for header parsing.
> > 
> > Is there code in Apache that would simplify this implementation?
> > 
> > Index: include/util_script.h
> > ===================================================================
> > RCS file: /home/cvs/apache-2.0/src/include/util_script.h,v
> > retrieving revision 1.8
> > diff -u -r1.8 util_script.h
> > --- include/util_script.h	2000/04/14 15:58:17	1.8
> > +++ include/util_script.h	2000/07/27 17:20:12
> > @@ -81,6 +81,10 @@
> >  API_EXPORT(int) ap_scan_script_header_err_core(request_rec 
> *r, char *buffer,
> >  				       int (*getsfunc) (char *, 
> int, void *),
> >  				       void *getsfunc_data);
> > +API_EXPORT_NONSTD(int) 
> ap_scan_script_header_err_strs(request_rec *r, 
> > +                                                      char 
> *buffer, 
> > +                                                      
> const char **data,
> > +                                                      ...);
> >  API_EXPORT(void) ap_send_size(ap_ssize_t size, request_rec *r);
> >  
> >  #ifdef __cplusplus


Mime
View raw message