Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 826 Bytes

pass-body.md

File metadata and controls

33 lines (25 loc) · 826 Bytes

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, default main.
  • mime (optional): Sets the Content-Type, default text/plain.
  • status (optional): Sets the HTTP response status code, see set-status action.

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