Skip to content

Commit a43240a

Browse files
committed
feat(http_source): add configuration for custom HTTP responses
Adds a `response_source` configuration option to the `http_server` source that accepts a VRL program to generate a custom HTTP response for each request. Closes: #21013
1 parent b57d8b0 commit a43240a

5 files changed

Lines changed: 895 additions & 23 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add the `response_source` config option to the `http_server` source, allowing a VRL program to generate a custom HTTP response. The program receives the decoded events as input (`.` is an array of event objects) and can return a string body or an object with `status`, `body`, and `headers` fields.
2+
3+
authors: stigglor

0 commit comments

Comments
 (0)