reply in text

This block is part of the http connection group and was last modified in core v10.4.28.

reply in text v10.4.28

reply a http connection with text

In pins 5 + flow
  • flow
  • connection httpconnection required
  • code number required

    HTTP Status Code to return on this response.

  • type value

    Sets the Content-Type HTTP header.

    Default text/plain

  • Headers array<object>

    Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]

  • data value required
Out pins 1 + flow
  • flow
  • connection httpconnection

Sends the data pin as a text response: Content-Type text/plain unless the type pin overrides it, status from the code pin (default 200). A falsy data value (0, false, "", nil) sends an empty string body. The response flushes immediately mid-flow; an unwired or nil connection sends nothing and outputs nil.

A typical wiring for reply in text: a function trigger starts the flow; number feeds the code pin; the flow out pin feeds debug.

Studio canvas example for the reply in text block: typical wiring for reply in text.

Version history

Introduced in v10.4.28.


Back to http connection Return to the main group to view all sub-groups Back to response Return to the group to view all blocks within this group