]> granicus.if.org Git - apache/commitdiff
Use a handler rather than a magic mime type in mod_asis.
authorJoshua Slive <slive@apache.org>
Wed, 4 Oct 2000 21:51:14 +0000 (21:51 +0000)
committerJoshua Slive <slive@apache.org>
Wed, 4 Oct 2000 21:51:14 +0000 (21:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86390 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_asis.html

index a2af563789c91fe4c649541d207781a498bb3c31..64b12982421cab8823b0cb0682a0d1fbe6f809f2 100644 (file)
@@ -37,29 +37,31 @@ REL="Help"
 
 <H2>Summary</H2>
 
-<P>Any document with mime type <CODE>httpd/send-as-is</CODE> will be
-processed by this module.  Apache will send the document without
-adding most of the usual HTTP headers.
+<p>This module provides the handler <code>send-as-is</code> wich
+causes Apache to send the document without adding most of the usual
+HTTP headers.</p>
 
 <P>This can be used to send any kind of data from the server,
 including redirects and other special HTTP responses, without
 requiring a cgi-script or an nph script.
 
+<p>For historical reasons, this module will also process any file with
+the mime type <code>httpd/send-as-is</code>.
+
 <H2>Directives</H2>
 
 <P>This module provides no directives.
 
 <H2>Usage</H2>
 
-<P>In the server configuration file, define a new mime type called
-<CODE>httpd/send-as-is</CODE> <EM>e.g.</EM>
-<BLOCKQUOTE><CODE>AddType httpd/send-as-is asis</CODE></BLOCKQUOTE>
-this defines the <CODE>.asis</CODE> file extension as being of the new
-<CODE>httpd/send-as-is</CODE> mime type. The contents of any file with a
-<CODE>.asis</CODE> extension will then be sent by Apache to the client with
-almost no changes. Clients will need HTTP headers to be attached, so do not
-forget them. A Status: header is also required; the data should be the
-3-digit HTTP response code, followed by a textual message.
+<P>In the server configuration file, associate files with the
+<code>send-as-is</code> handler <EM>e.g.</EM>
+<BLOCKQUOTE><CODE>AddHandler send-as-is asis</CODE></BLOCKQUOTE>
+The contents of any file with a <CODE>.asis</CODE> extension will then
+be sent by Apache to the client with almost no changes. Clients will
+need HTTP headers to be attached, so do not forget them. A Status:
+header is also required; the data should be the 3-digit HTTP response
+code, followed by a textual message.
 
 <P>Here's an example of a file whose contents are sent <EM>as is</EM>
 so as to tell the client that a file has redirected.