Skip to content

Add --expect-header for response header checks#261

Open
jongio wants to merge 1 commit into
mainfrom
idea/expect-header
Open

Add --expect-header for response header checks#261
jongio wants to merge 1 commit into
mainfrom
idea/expect-header

Conversation

@jongio

@jongio jongio commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add repeatable --expect-header checks for response header presence or exact values.
  • Redact sensitive response header values in expectation errors.
  • Document the flag in README, CLI reference, and the docs site.

Closes #258

Validation

  • Passed: go test -short .\src\... from cli/
  • Passed: pnpm build from web/
  • Not passed: mage preflight from cli/ stops at existing golangci-lint findings in format_table.go, repeat.go, and mcp.go.

Add a repeatable --expect-header flag that checks response headers after output is written. Document the flag and cover parsing, success, mismatch, and redaction cases in unit tests.

Co-authored-by: Copilot <[email protected]>
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 11, 2026
@jongio jongio self-assigned this Jul 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Website Preview

Your PR preview is ready!

📎 Preview URL: https://jongio.github.io/azd-rest/pr/261/

This preview will be automatically cleaned up when the PR is closed.

github-actions Bot added a commit that referenced this pull request Jul 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Test This PR

A preview build (0.5.0-pr261) is ready for testing!

One-Line Install (Recommended)

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/install-pr.ps1) } -PrNumber 261 -Version 0.5.0-pr261"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/install-pr.sh | bash -s 261 0.5.0-pr261

Uninstall

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/uninstall-pr.ps1) } -PrNumber 261"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-rest/main/scripts/uninstall-pr.sh | bash -s 261

Build Info:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --expect-header for response header checks

1 participant