Changes

Jump to navigation Jump to search
70 bytes added ,  15:32, 1 May 2014
===HTTP Methods===
 
====Fixed Methods====
The HTTP method annotations are equivalent to all [http://en.wikipedia.org/wiki/HTTP#Request_methods HTTP request methods] except for TRACE and CONNECT. Zero or more methods may be used on a function; if none is specified, the function will be invoked for each method.
function page:put($body) { "Request body: " || $body };
</pre>
 
====Custom Methods====
Since {{Version|7.8.3}}, custom HTTP methods can be specified with the {{Code|%rest:method}} annotation:
function page:retrieve() { "RETRIEVE was specified as request method." };
</pre>
 
====Content Types====
If a content-type is specified in the request, the content is converted to the following XQuery type:
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu