From: Ken Coar Date: Wed, 9 Apr 1997 14:38:34 +0000 (+0000) Subject: Added information about how to set the Content-type for X-Git-Tag: APACHE_1_2b9~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26ebab9658a59ab45127a928b012dc1f9d3eebc3;p=apache Added information about how to set the Content-type for module-generated content. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@77831 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/developer/API.html b/docs/manual/developer/API.html index 7ff12086aa..a45d8694cb 100644 --- a/docs/manual/developer/API.html +++ b/docs/manual/developer/API.html @@ -233,7 +233,16 @@ response (which modules can add to at will), and environment variables for any subprocesses which are spawned off in the course of servicing the request. These tables are manipulated using the table_get and table_set routines.

- +

+ Note that the Content-type header value cannot be + set by module content-handlers using the table_*() + routines. Rather, it is set by pointing the content_type + field in the request_rec structure to an appropriate + string. E.g., +
+  r->content_type = "text/html";
+ 
+
Finally, there are pointers to two data structures which, in turn, point to per-module configuration structures. Specifically, these hold pointers to the data structures which the module has built to diff --git a/docs/manual/misc/API.html b/docs/manual/misc/API.html index 7ff12086aa..a45d8694cb 100644 --- a/docs/manual/misc/API.html +++ b/docs/manual/misc/API.html @@ -233,7 +233,16 @@ response (which modules can add to at will), and environment variables for any subprocesses which are spawned off in the course of servicing the request. These tables are manipulated using the table_get and table_set routines.

- +

+ Note that the Content-type header value cannot be + set by module content-handlers using the table_*() + routines. Rather, it is set by pointing the content_type + field in the request_rec structure to an appropriate + string. E.g., +
+  r->content_type = "text/html";
+ 
+
Finally, there are pointers to two data structures which, in turn, point to per-module configuration structures. Specifically, these hold pointers to the data structures which the module has built to