Changes

Jump to navigation Jump to search
60 bytes removed ,  16:19, 21 May 2018
m
update custom response according to spec. Hopefully BaseX implemented it this way
==Query Execution==
{{Mark|Updated with Version 9.0:}} The dubious old status code {{Code|410}} (which indicates to the client that a resource is permanently removed) was replaced with {{Code|460}}.
In many RESTXQ search scenarios, input from browser forms is processed and search results are returned. User experience can generally be made more interactive if an updated search request is triggered with each key click. However, this may lead to many expensive parallel requests, from which only the result of the last request will be relevant for the client.
declare %rest:path("") function page:error404() {
<rest:response>
<http:response status="404" messagereason="I was not found.">
<http:header name="Content-Language" value="en"/>
<http:header name="Content-Type" value="text/html; charset=utf-8"/>
* Added: Support for server-side quality factors in the [[#Content Negotiation|<code>%rest:produces</code>]] annotation
* Updated: The dubious status Status code {{Code|410}} (which indicates that a resource is permanently removed) was replaced with {{Code|460}}
* Removed: {{Code|restxq}} prefix
administrator, editor
1

edit

Navigation menu