A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/response
A module for dealing with HTTP responses.

response:set-cookie($name as xs:string, $value as xs:string) empty()
Sets a HTTP Cookie on the HTTP Response.
$nameThe cookie name
$valueThe cookie value

response:set-cookie($name as xs:string, $value as xs:string, $max-age as xs:duration, $name as xs:boolean?) empty()
Sets a HTTP Cookie on the HTTP Response.
$nameThe cookie name
$valueThe cookie value
$max-ageThe xs:duration of the cookie
$nameThe flag on whether the cookie is to be secure (eg. only transferred using HTTPS)
Return to list of all modules