![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 79](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653079.webp)
ObjectType Stage
Chapter
3
Predefined SAFs and the Request Handling Process
79
Make sure that the directive that calls this function comes last in the list of
ObjectType
directives so that all other
ObjectType
directives have a chance to set
the MIME type first. If there is more than one
ObjectType
directive in an object, all
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
Examples
See Also
type-by-extension, type-by-exp
set-default-type
Applicable in
ObjectType
-class directives.
This function allows you to define a default
charset
,
content-encoding
, and
content-language
for the response being sent back to the client.
type
(optional) is the type assigned to a matching request (the
content-type
header).
enc
(optional) is the encoding assigned to a matching request (the
content-encoding
header).
lang
(optional) is the language assigned to a matching request (the
content-language
header).
charset
(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
” to content-type,
where
charset
is the value of the
magnus-charset
parameter in
rq->srvhdrs
.
bucket
optional, common to all
obj.conf
functions
ObjectType fn=force-type type=text/plain
ObjectType fn=force-type lang=en_US
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...