The <code>request</code> annotation is specific to BaseX: servlet request data can be bound
to this annotation and then processed via the [[Request Module|Request Functions]]. The followingexample returns the current session id:
<pre class="brush:xquery">
import module namespace request = "http://exquery.org/ns/restxq/Request";
declare
%rest:path("/id")
%rest:request("{$req}")
function page:testid($req) { ... request:session-id($req)};
</pre>