Changes

Jump to navigation Jump to search
185 bytes added ,  15:31, 1 May 2014
declare %rest:PUT("{$body}") %rest:path("/put")
function page:put($body) { "Request body: " || $body };
</pre>
 
Since {{Version 7.8.3}}, custom HTTP methods can be specified with the {{Code|%rest:method}} annotation:
 
<pre class="brush:xquery">
declare %rest:method("RETRIEVE")
function page:retrieve() { "RETRIEVE was specified as request method." };
</pre>
====Multipart Types====
Some first support for {{Code|multipart}} content-types has been added.The single parts of a multipart message are represented as a sequence,
and each part is converted to an XQuery item as described in the last paragraph.
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu