dump Action #

The dump action dumps out data to the client and terminates the request.

Syntax #

Usage #

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.

Examples #

<dump />
<dump in="public/error.html"/>
<dump xpath="$request/headers"/>
<dump xpath="content()" status="201" mime="text/plain"/>