summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-10-06 20:10:59 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-10-06 20:10:59 +0200
commit3386c849e67ec9820ee1aef4bbfbb61da137b9b1 (patch)
treec2eb98933e88e298898ee62ba465eec240293ffd /user_guide
parentdbc9e15c814ad2fc8a3fb10fbd1350d42b1f7f9c (diff)
Added set_status_header() function to docs
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/libraries/output.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/user_guide/libraries/output.html b/user_guide/libraries/output.html
index 304cd0a28..efb3346ce 100644
--- a/user_guide/libraries/output.html
+++ b/user_guide/libraries/output.html
@@ -99,6 +99,16 @@ $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false);<br />
$this->output->set_header("Pragma: no-cache"); </code>
+
+<h2>$this->output->set_status_header();</h2>
+
+<p>Permits you to manually set a server status header. Example:</p>
+
+<code>$this->output->set_status_header('401');<br />
+// Sets the header as: Unauthorized</code>
+
+<p><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html">See here</a> for a full list of headers.</p>
+
<h2>$this->output->enable_profiler();</h2>
<p>Permits you to enable/disable the <a href="../general/profiling.html">Profiler</a>, which will display benchmark and other data