Skip to content

feat(handler): add configurable direct responses#218

Merged
Snawoot merged 1 commit into
SenseUnit:masterfrom
m11y:feat/direct-response-static
May 22, 2026
Merged

feat(handler): add configurable direct responses#218
Snawoot merged 1 commit into
SenseUnit:masterfrom
m11y:feat/direct-response-static

Conversation

@m11y
Copy link
Copy Markdown
Contributor

@m11y m11y commented May 22, 2026

Summary

  • Add -direct-response for serving a configured response to direct non-proxy HTTP requests.
  • Add -access-reject for customizing access-filter denial responses while preserving the default 403 behavior.
  • Reuse the static response implementation for static:// direct responses and existing reject providers for access denials.

Test plan

  • go test ./...
  • CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o dist/dumbproxy .

🤖 Generated with Claude Code

@Snawoot
Copy link
Copy Markdown
Member

Snawoot commented May 22, 2026

Thank you for the contribution!

@Snawoot Snawoot merged commit 4682dbe into SenseUnit:master May 22, 2026
@Snawoot Snawoot self-assigned this May 22, 2026
@m11y m11y deleted the feat/direct-response-static branch May 22, 2026 07:03
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