dump Action # The dump action dumps out data to the client and terminates the request.
xpath="..." defines an XPath used to select which nodes to dumpin="..." defines the input location to dump whole documents or variables (optional, default is fit://request/content)mime="..." sets the HTTP header field Content-Type to the given value (optional)status="..." sets the HTTP status code to the given value (optional).If a whole document is dumped via the in attribute, the MIME type of that document
is used to set the value for the Content-Type header field.
The mime attribute can be used to override the Content-Type header.
If no status attribute is set, the HTTP status will remain unchanged.
If status has an empty value (status=""), the HTTP status code is set to 500.
<dump />
<dump in="public/error.html"/>
<dump xpath="$request/headers"/>
<dump xpath="content()" status="201" mime="text/plain"/>