Skip to content

feat(kawa_h1): flexible HTTP answer template system - #1207

Closed
FlorentinDUBOIS wants to merge 2 commits into
feat/rewrite-backend-refactorfrom
feat/rewrite-answer-templates
Closed

FlorentinDUBOIS wants to merge 2 commits into
feat/rewrite-backend-refactorfrom
feat/rewrite-answer-templates

Conversation

@FlorentinDUBOIS

Copy link
Copy Markdown
Collaborator

Summary

  • Replace CustomHttpAnswers with map<string, string> answer templates on listeners and clusters
  • Template variable substitution (status code, request path, cluster ID)
  • Proto wire compatibility preserved (reserved fields for removed numbers)

Depends on

Test plan

  • Existing e2e tests pass
  • Custom answer templates render correctly
  • Default answers unchanged in behavior

Replace fixed CustomHttpAnswers with configurable map<string, string>
answer templates on listeners and clusters. Templates support variable
substitution for status codes, request paths, and cluster IDs.

Refs: #1161
Signed-off-by: Florentin Dubois <[email protected]>
Fix missing comma after request_id and trailing comma before closing
brace in the fallback template's JSON diagnostic block.

Signed-off-by: Florentin Dubois <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants