Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 93ab9f7

Browse files
authored
docs: tutorials: dataflow: ffmpeg: Add immediate response to webhook receiver
Fixes: #804
1 parent e33286e commit 93ab9f7

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

docs/usage/webhook/webhook.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,19 @@ Config
5858
output_mode: json
5959
input_mode: bytes:payload
6060
forward_headers: webhook_headers
61+
immediate_response:
62+
status: 200
63+
content_type: application/json
64+
data:
65+
status: Received
6166
EOF
6267
63-
Note that the input_mode is ``bytes:payload``, this means that inputs from post request will
64-
be passed as bytes to the dataflow with ``payload`` definition..
68+
Note that the input_mode is ``bytes:payload``, this means that inputs
69+
from post request will be passed as bytes to the dataflow with
70+
``payload`` definition. We don't want to wait until the dataflow
71+
completes running to send a response back, so we also add an
72+
``immediate_response`` to the server configuration.
73+
6574

6675
Deploy it in port 8081 as 8080 is being used by ffmpeg http service
6776

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
path: /webhook/github
22
output_mode: json
33
input_mode: bytes:payload
4-
forward_headers: webhook_headers
4+
forward_headers: webhook_headers
5+
immediate_response:
6+
status: 200
7+
content_type: application/json
8+
data:
9+
status: Received

0 commit comments

Comments
 (0)