Respond to Webhook
Answer the HTTP call that started this run, for a Webhook set to reply from Respond to Webhook. Each fire writes body to that caller. With last on (the default) the fire sends one whole response. Fires with last off stream the response piece by piece, and the next fire with last on ends it. The status, headers and content type of the first fire hold for the whole response. A stream goes out as server-sent events when the caller asks for text/event-stream, else one line per piece.
Fired. It runs when an event lands on trigger, and pulls its other inputs at that moment. A data wire never fires it.
Inputs
Section titled “Inputs”| Port | Type | Notes |
|---|---|---|
trigger |
event | Fires the node |
body |
any | Optional |
Outputs
Section titled “Outputs”| Port | Type | Notes |
|---|---|---|
trigger |
event |
Right-click a knob and pick Convert to input to drive it from a wire.
| Knob | Kind | Default | Notes |
|---|---|---|---|
statusstatus |
number | 200 |
100 to 599 |
content_type |
choice | auto |
auto, application/json, text/plain, text/event-stream |
headersheaders (JSON object) |
text block | {} |
|
lastlast (ends the response) |
on / off | on |