Send-File - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

<Object name="default">
...
NameTrans fn="pfx2dir" from="/cgi-bin"
dir="/home/example.com/public_html/cgi-bin" name="cgi"
...
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi" user="$user" group="$group" dir="$dir"
chroot="$chroot" nice="$nice"
</Object>

send-file

Applicable in
Service
The
function sends the contents of the requested file to the client. It
send-file
provides the
content-type
Most requests are handled by this function using the following directive (which
usually comes last in the list of
it acts as a default)
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*"
fn="send-file"
This directive is invoked if the method of the request is
type does not start with
"does not match." For a list of characters that can be used in patterns, see Appendix
C, "Wildcard Patterns."
Parameters
nocache
type
method
-class directives.
,
content-length
-class directives in the default object so that
Service
magnus-internal/
(optional) prevents the server from caching responses
to static file requests. For example, you can specify that
files in a particular directory are not to be cached,
which is useful for directories where the files change
frequently.
The value you assign to this parameter is ignored. If
you do not wish to use this parameter, leave it out.
optional, common to all Service-class functions
optional, common to all Service-class functions
Chapter 3
Predefined SAFs and the Request Handling Process
, and
last-modified
,
GET
HEAD
. Note here that the pattern
Service Stage
headers.
, or
, and the
POST
means
*~
97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents