$Web Output Type: Difference between revisions
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:$Web_Output_Type}} | {{DISPLAYTITLE:$Web_Output_Type}} | ||
<span class="pageSubtitle"><section begin="desc" />Retrieve current output mime-type<section end="desc" /></span> | <span class="pageSubtitle"><section begin="desc" />Retrieve current output mime-type<section end="desc" /></span> | ||
$Web_Output_Type retrieves the current output mime-type set either by JANUS WEB ON rules or by the $Web_Type function. | <var>$Web_Output_Type</var> retrieves the current output mime-type set either by JANUS WEB ON rules or by the <var>$Web_Type</var> function. | ||
==Syntax== | ==Syntax== | ||
<p class="syntax"><section begin="syntax" /> %STR = $Web_Output_Type | <p class="syntax"><section begin="syntax" /> %STR = $Web_Output_Type | ||
<section end="syntax" /></p> | <section end="syntax" /></p> | ||
$Web_Output_Type takes no arguments and returns a string. | <var>$Web_Output_Type</var> takes no arguments and returns a string. | ||
This function might prove useful in determining the meaning of the contents of the output stream in code that is shared among many applications -- though it is highly dependent on those applications having already set $Web_Type. | This function might prove useful in determining the meaning of the contents of the output stream in code that is shared among many applications -- though it is highly dependent on those applications having already set <var>$Web_Type</var>. | ||
The current output contents can be retrieved with [[$Web_Output_Content]]. | The current output contents can be retrieved with <var>[[$Web_Output_Content]]</var>. | ||
$Web_Output_Type is available only in Versions 6.7 and later of the | $Web_Output_Type is available only in Versions 6.7 and later of the <var class="product">Sirius Mods</var>. | ||
See also [[$Web_Output_Content]] and [[$Web_Type]]. | See also <var>[[$Web_Output_Content]]</var> and <var>[[$Web_Type]]</var>. | ||
[[Category:Janus Web Server $functions|$Web_Output_Type]] | [[Category:Janus Web Server $functions|$Web_Output_Type]] |
Revision as of 01:00, 3 May 2011
<section begin="desc" />Retrieve current output mime-type<section end="desc" />
$Web_Output_Type retrieves the current output mime-type set either by JANUS WEB ON rules or by the $Web_Type function.
Syntax
<section begin="syntax" /> %STR = $Web_Output_Type <section end="syntax" />
$Web_Output_Type takes no arguments and returns a string.
This function might prove useful in determining the meaning of the contents of the output stream in code that is shared among many applications -- though it is highly dependent on those applications having already set $Web_Type.
The current output contents can be retrieved with $Web_Output_Content.
$Web_Output_Type is available only in Versions 6.7 and later of the Sirius Mods.
See also $Web_Output_Content and $Web_Type.