HTTP Server
HTTP Server (http-server)
Run an HTTP server and output any received requests.
Http binary json raw
Minimal example
input: http-server: address: ~JSON
{ "input": { "http-server": { "address": null } }}Contents
Behavior
Behavior
| Field | Type | Required | Description |
|---|---|---|---|
only-body ✓ | boolean (bool) | Only print out body, assumed to be JSON. Default: false | |
query | string | Only print out given query var. | |
json ✓ | boolean (bool) | Data is assumed to be already JSON. Default: false | |
ignore-linebreaks ✓ | boolean (bool) | Do not split body on line breaks. Default: false |
Reliability
Reliability
| Field | Type | Required | Description |
|---|---|---|---|
timeout | string | Timeout. |
Response
Response
| Field | Type | Required | Description |
|---|---|---|---|
custom-response | multiline-text (string) | Respond using this text. | |
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
Security
| Field | Type | Required | Description |
|---|---|---|---|
tls | Tls | Optional TLS certificate and key. |
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
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 |