pass-body Action
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.
Syntax
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, see
Examples
<flow>
<request>{ "url": "…" }</request>
<pass-body />
</flow><flow>
<request>{ "id": "pass-me", "url": "…" }</request>
<pass-body request="pass-me" status="200"/>
</flow>See also
Last updated
Was this helpful?