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
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...