HTTP Server
HTTP Server (http-server)
Section titled “HTTP Server (http-server)”Run an HTTP server and turn received requests into events. By default, each event includes request details and the body as text. To use JSON objects from the body as events, set only-body: true and json: true. Each non-empty line becomes a separate event, so newline-delimited JSON should have one complete object per line. For one JSON object spread across several lines, also set ignore-linebreaks: true to read the whole body as one event. yaml input: http-server: address: 127.0.0.1:8080 only-body: true json: true ignore-linebreaks: true output: print: {} For newline-delimited JSON, omit ignore-linebreaks or set it to false.
Http binary json raw
Minimal example
Section titled “Minimal example”input: http-server: address: ~JSON
{ "input": { "http-server": { "address": null } }}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Behavior
Section titled “Behavior”Behavior
| Field | Type | Required | Description |
|---|---|---|---|
accepted-methods |
Accepted Methods[] |
Optional methods that emit events. When set, HEAD and OPTIONS are answered without events and other methods return 405. Unset accepts every method. Allowed values: GET, POST, PUT, PATCH, DELETE, TRACE, CONNECT |
|
only-body ✓ |
boolean (bool) |
Use the request body as event data instead of including request details. Set json: true to read JSON objects.Default: false |
|
query |
string |
Only print out given query var. | |
json ✓ |
boolean (bool) |
Read body data as JSON objects when only-body is enabled. By default, each non-empty line is a separate event.Default: false |
|
ignore-linebreaks ✓ |
boolean (bool) |
Read the whole body as one event when only-body is enabled. Use with json: true for a JSON object spread across several lines.Default: false |
|
body-capture |
Body Capture |
Optional request-body projection for the normal JSON envelope. With byte-exact: base64, the envelope gains body_base64 and body_size_bytes derived directly from the received bytes. |
Reliability
Section titled “Reliability”Reliability
| Field | Type | Required | Description |
|---|---|---|---|
timeout |
string |
Optional maximum listener lifetime from startup (for example, 1h). Unset keeps listening until the Job stops. Requests do not reset this lifetime. Use response.timeout-seconds to bound waiting for a workflow response. |
Response
Section titled “Response”Response
| Field | Type | Required | Description |
|---|---|---|---|
custom-response |
multiline-text (string) |
Respond using this text. | |
response |
Response |
Response policy for incoming HTTP requests. | |
source-ip-field |
field (string) |
If specified the source IP address for the HTTP request to the server will be stored in the specified field. Examples: data_field |
Security
Section titled “Security”Security
| Field | Type | Required | Description |
|---|---|---|---|
tls |
Tls |
Optional TLS certificate and key. |
Server
Section titled “Server”Server
| Field | Type | Required | Description |
|---|---|---|---|
address |
string |
✅ | Server listens on this address:port. |
path |
string |
Optionally restrict to this path. | |
content-type |
string |
Optional content type for responses. |
Schema
Section titled “Schema”- Body Capture Fields
- Response Fields
- Tls Fields
- Accepted Methods Options
- Body Capture - Byte Exact Options
- Response - Mode Options
Body Capture Fields
Section titled “Body Capture Fields”| Field | Type | Required | Description |
|---|---|---|---|
text ✓ |
boolean (bool) |
Retain the compatibility body text field (defaults to true).Default: true |
|
byte-exact |
Byte Exact |
Optional byte-exact JSON-safe representation of the original request body. Allowed values: none, base64 |
Response Fields
Section titled “Response Fields”| Field | Type | Required | Description |
|---|---|---|---|
mode |
Mode |
Response mode for incoming HTTP requests. Allowed values: immediate, wait-for-workflow |
|
timeout-seconds |
number (integer) |
Maximum time to wait for a workflow response, in seconds. Examples: 42, 1.2e-10 |
|
timeout-status-code |
number (integer) |
HTTP status returned when a workflow response times out. Examples: 42, 1.2e-10 |
|
timeout-body |
multiline-text (string) |
HTTP body returned when a workflow response times out. | |
response-header-allowlist |
string[] |
Response headers that workflow completions may pass through. | |
body-max-bytes |
number (integer) |
Maximum workflow response body size in bytes. Examples: 42, 1.2e-10 |
Tls Fields
Section titled “Tls Fields”| Field | Type | Required | Description |
|---|---|---|---|
cert |
path (string) |
✅ | Path to the certificate file. Examples: /path/to/file, c:\users\joe\data\file.txt |
key |
path (string) |
✅ | Path to the private key file. Examples: /path/to/file, c:\users\joe\data\file.txt |
Accepted Methods Options
Section titled “Accepted Methods Options”| Value | Aliases | Name | Description |
|---|---|---|---|
GET |
GET | ||
POST |
POST | ||
PUT |
PUT | ||
PATCH |
PATCH | ||
DELETE |
DELETE | ||
TRACE |
TRACE | ||
CONNECT |
CONNECT |
Body Capture - Byte Exact Options
Section titled “Body Capture - Byte Exact Options”| Value | Aliases | Name | Description |
|---|---|---|---|
none |
none | Do not add byte-exact request-body fields | |
base64 |
base64 | Add body_base64 and body_size_bytes from the original request bytes |
Response - Mode Options
Section titled “Response - Mode Options”| Value | Aliases | Name | Description |
|---|---|---|---|
immediate |
immediate | ||
wait-for-workflow |
wait-for-workflow |