httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Spinetti <m.spine...@pisa.iol.it>
Subject Write to client directly
Date Mon, 25 Feb 2008 10:58:27 GMT
I'd like to know if it's possibile to write directly to the client.
Actually in my module handler (apache 2.2) I have:

ap_set_content_type(r, "text/html");
ap_rwrite(bufptr, size, r);
ap_rflush(r);
....

where bufptr is obtained by libxslt xsltSaveResultToString.
Because it's possibile to write the output of the transform to stdout 
directly, I'd like to know if I could delete the bufptr creation.
The libxml2 function to write to stdout is:

xsltSaveResultToFile(stdout, ....);

So could I write in my module something like this below?
ap_set_content_type(r, "text/html");
xsltSaveResultToFile(stdout, ....);
.....

Best regards
Marco



Mime
View raw message