diff options
author | Ken Coar <coar@apache.org> | 1997-04-09 16:38:34 +0200 |
---|---|---|
committer | Ken Coar <coar@apache.org> | 1997-04-09 16:38:34 +0200 |
commit | 26ebab9658a59ab45127a928b012dc1f9d3eebc3 (patch) | |
tree | 7deafaca0f44c28a26b8dd61eec74411dc4455c2 /docs/manual/developer | |
parent | Just testing whether only rodent's have problems... (diff) | |
download | apache2-26ebab9658a59ab45127a928b012dc1f9d3eebc3.tar.xz apache2-26ebab9658a59ab45127a928b012dc1f9d3eebc3.zip |
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
Diffstat (limited to 'docs/manual/developer')
-rw-r--r-- | docs/manual/developer/API.html | 11 |
1 files changed, 10 insertions, 1 deletions
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 <code>table_get</code> and <code>table_set</code> routines. <p> - +<BLOCKQUOTE> + Note that the <SAMP>Content-type</SAMP> header value <EM>cannot</EM> be + set by module content-handlers using the <SAMP>table_*()</SAMP> + routines. Rather, it is set by pointing the <SAMP>content_type</SAMP> + field in the <SAMP>request_rec</SAMP> structure to an appropriate + string. <EM>E.g.</EM>, + <PRE> + r->content_type = "text/html"; + </PRE> +</BLOCKQUOTE> 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 |