Configuration
Properties
| Property | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "http" |
url | string | Yes | HTTP endpoint URL (supports Go templates) |
method | string | No | HTTP method (default: GET) |
headers | object | No | HTTP headers (values support Go templates) |
body | string | No | Request body (supports Go templates) |
timeout | string | No | Request timeout (default: 30s) |
Supported HTTP Methods
GET(default)POSTPUTPATCHDELETEHEADOPTIONS
Response Data Available in CEL
The HTTP provider makes the following data available in your CEL success conditions:result.ok-trueif status code is 2xxresult.statusCode- HTTP status code (e.g.,200,404,500)result.body- Response body as stringresult.json- Parsed JSON response (if response is valid JSON)result.headers- Response headers as an objectresult.duration- Request duration in milliseconds
Example Success Conditions
Examples
Basic Health Check
POST Request with Body
Authenticated Request
Custom Timeout
Template Variables
The HTTP provider supports Go templates in theurl, headers, and body
fields:
Best Practices
- Use HTTPS for production endpoints to ensure secure communication
- Set appropriate timeouts based on your service’s expected response time
- Handle authentication using deployment variables for sensitive tokens
- Validate JSON responses by checking
result.jsonexists before accessing fields - Use meaningful success conditions that check both status codes and response content