-<xqdoc:xqdoc>
-<xqdoc:module type="library">
<xqdoc:uri>http://exist-db.org/xquery/response</xqdoc:uri>
-<xqdoc:comment>
<xqdoc:description>Functions dealing with HTTP responses</xqdoc:description>
</xqdoc:comment>
</xqdoc:module>
-<xqdoc:functions>
-<xqdoc:function>
<xqdoc:name>redirect-to</xqdoc:name>
<xqdoc:signature>response:redirect-to($a as xs:anyURI) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Sends a HTTP redirect response (302) to the client. Note: this is not supported by the Cocooon generator. Use a sitemap redirect instead.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>set-cookie</xqdoc:name>
<xqdoc:signature>response:set-cookie($a as xs:string, $b as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Set's a HTTP Cookie on the HTTP Response. $a is the cookie name, $b is the cookie value.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>set-cookie</xqdoc:name>
<xqdoc:signature>response:set-cookie($a as xs:string, $b as xs:string, $c as xs:duration) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Set's a HTTP Cookie on the HTTP Response. $a is the cookie name, $b is the cookie value, and $c is the maxAge as xs:duration of the cookie.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>set-header</xqdoc:name>
<xqdoc:signature>response:set-header($a as xs:string, $b as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Set's a HTTP Header on the HTTP Response. $a is the header name, $b is the header value.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>set-status-code</xqdoc:name>
<xqdoc:signature>response:set-status-code($a as xs:integer) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Set's a HTTP server status code on the HTTP Response. $a is the response code.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>stream-binary</xqdoc:name>
<xqdoc:signature>response:stream-binary($a as xs:base64Binary, $b as xs:string, $c as xs:string?, ...) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Streams the binary data passed in $a to the current servlet response output stream. The ContentType HTTP header is set to the value given in $b. The filename is set to the value given in $c, if no filename is specified thenthat of the current request is used.This function only works within a servlet context, not within Cocoon. Note: the servlet output stream will be closed afterwards and mime-type settings in the prolog will not be passed.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>exists</xqdoc:name>
<xqdoc:signature>response:exists() xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns whether a response object exists.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
</xqdoc:functions>
</xqdoc:xqdoc>