HTTP
What
HTTP Request is a simple segment to return any json data from any HTTP call.
Sample Configuration
- json
- yaml
- toml
Options
| Name | Type | Default | Description |
|---|---|---|---|
url | string | `` | The HTTP URL you want to call, supports templates |
method | string | GET | The HTTP method to use, GET or POST |
http_timeout | int | 10000 | The timeout in milliseconds for the HTTP request |
Template (info)
default template
{{ .Body }}
Properties
| Name | Type | Description |
|---|---|---|
.Body.property | string | Replace .property with the property you want to display |