Skip to content

refactor(server): harden demo HTTP server#30

Merged
taigrr merged 1 commit into
masterfrom
cd/harden-demo-server
May 11, 2026
Merged

refactor(server): harden demo HTTP server#30
taigrr merged 1 commit into
masterfrom
cd/harden-demo-server

Conversation

@taigrr
Copy link
Copy Markdown
Owner

@taigrr taigrr commented May 11, 2026

Summary

  • move route registration into a dedicated mux constructor for easier testing
  • serve the demo app through an explicit http.Server with a read-header timeout
  • add main-package tests that cover the registered routes and server configuration

Testing

  • go test ./...
  • go test -race ./...
  • staticcheck ./...

@taigrr taigrr merged commit 23b6b07 into master May 11, 2026
2 checks passed
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.

1 participant