HTTP Server (http-server)
Run an HTTP server and output any received requests.
Http binary json raw
Minimal example
JSON
Contents
Fields
| Field | Type | Required | Description |
|---|
address Server | string | ✅ | Server listens on this address:port. |
path Server | string | | Optionally restrict to this path. |
content-type Server | string | | Optional content type for responses. |
tls Security | Tls | | Optional TLS certificate and key. |
only-body Behavior | boolean (bool) | | Only print out body, assumed to be JSON. |
query Behavior | string | | Only print out given query var. |
json Behavior | boolean (bool) | | Data is assumed to be already JSON. |
ignore-linebreaks Behavior | boolean (bool) | | Do not split body on line breaks. |
custom-response Response | multiline-text (string) | | Respond using this text. |
source-ip-field Response | 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 |
timeout Reliability | string | | Timeout. |
Server
Show fields
| 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. |
Security
Show fields
| Field | Type | Required | Description |
|---|
tls | Tls | | Optional TLS certificate and key. |
Behavior
Show fields
| Field | Type | Required | Description |
|---|
only-body | boolean (bool) | | Only print out body, assumed to be JSON. |
query | string | | Only print out given query var. |
json | boolean (bool) | | Data is assumed to be already JSON. |
ignore-linebreaks | boolean (bool) | | Do not split body on line breaks. |
Response
Show fields
| 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 |
Reliability
Show fields
| Field | Type | Required | Description |
|---|
timeout | string | | Timeout. |
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 |