Question
· Sep 14, 2016

OnHTTPHeader not support cache 14

Hi,

The OnHTTPHeader method not support in cache 14 but it support cache 13.

OnHTTPHeader(ByRef OutputBody As %Boolean) As %Status [ ServerOnly = 1 ] this method return Some special character.

Thanks,

sanasa

Discussion (4)1
Log in or sign up to continue

The method returns a %Status.

I reviewed the code between Cache 2013.1 and latest and I don't see any changes to the method:

<Method name="OnHTTPHeader">
<Description><![CDATA[
Event handler for <b>PAGE</b> event: this is invoked in order to  
send HTTP headers. The default action is to invoke the WriteHTTPHeader()
of the <class>%CSP.Response</class> which generates HTTP 1.0 standard
headers. Set <var>OutputBody</var> to 0 to prevent prevent <method>OnPage</method>
from being called, leave it unchanged otherwise. Returns a <class>%Status</class> code.]]></Description>
<Abstract>1</Abstract>
<ClassMethod>1</ClassMethod>
<FormalSpec><![CDATA[&OutputBody:%Boolean]]></FormalSpec>
<ReturnType>%Status</ReturnType>
<ServerOnly>1</ServerOnly>
<Implementation><![CDATA[]]></Implementation>
</Method>
 

Is there a particular problem you're running into?  Please feel free to open a WRC issue with support and we can investigate.