Changes

Jump to navigation Jump to search
107 bytes added ,  23:23, 3 August 2013
{{Mark|Introduced with Version 7.7:}}
Some first support for {{Code|multipart}} content-types has been added.The 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. A function that is capable of handling multipart types is identical to other RESTXQ functions:
<pre class="brush:xquery">
%rest:POST("{$data}")
%rest:consumes("multipart/mixed") (: optional :)
function page:multipart($dataas item()*)
{
"Number of items: " || count($data)
</pre>
The 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.
Please note that support for multipart types is still experimental,
and it may change in a future version BaseX. Your feedback is welcome.
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu