The pass-body
action sends the unmodified response body of a request
to the client. It prevents unnecessary copying which is especially useful when
dealing with binary data.
request
(optional): Specifies which request body shall be passed, defaultmain
.mime
(optional): Sets theContent-Type
, defaulttext/plain
.status
(optional): Sets the HTTP response status code, seeset-status
action.
<flow>
<request>{ "url": "…" }</request>
<pass-body />
</flow>
<flow>
<request>{ "id": "pass-me", "url": "…" }</request>
<pass-body request="pass-me" status="200"/>
</flow>