Force-Type - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

set-default-type
content-encoding
to the client.
shtml-hacktype
server-parsed html commands.
sets the content-type header for the response based on the
type-by-exp
requested path.
type-by-extension
files extension and the MIME types database.

force-type

Applicable in
ObjectType
The
function assigns a type to requests that do not already have a
force-type
MIME type. This is used to specify a default object type.
Make sure that the directive that calls this function comes last in the list of
directives so that all other
ObjectType
the MIME type first. If there is more than one
the directives are applied in the order they appear. If a directive sets an attribute
and later directives try to set that attribute to something else, the first setting is
used and the subsequent ones ignored.
Parameters
type
enc
lang
charset
bucket
allows you to define a default
, and
content-language
requests that
and
.htm
sets the content-type header for the response based on the
-class directives.
ObjectType
(optional) is the type assigned to a matching request (the
content-type header).
(optional) is the encoding assigned to a matching request (the
content-encoding header).
(optional) is the language assigned to a matching request (the
content-language header).
(optional) is the character set for the magnus-charset
parameter in rq->srvhdrs. If the browser sent the
Accept-charset header or its User-agent is mozilla/1.1
or newer, then append "; charset=
charset
where
is the value of the magnus-charset
parameter in rq->srvhdrs.
optional, common to all obj.conf functions
Chapter 3
Predefined SAFs and the Request Handling Process
,
charset
for the response being sent back
files are parsed for
.html
directives have a chance to set
directive in an object, all
ObjectType
charset
" to content-type,
ObjectType Stage
75

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents