Skip to content

refactor: replace gocraft with net/http routing - #14

Draft
Portals wants to merge 1 commit into
codex/04-golangci-lintfrom
codex/05-standard-router
Draft

refactor: replace gocraft with net/http routing#14
Portals wants to merge 1 commit into
codex/04-golangci-lintfrom
codex/05-standard-router

Conversation

@Portals

@Portals Portals commented Sep 7, 2026

Copy link
Copy Markdown
Member

Replaces gocraft/web with net/http.ServeMux and standard HTTP middleware while preserving the mail endpoint's authentication order, successful responses, trailing slash support, unsupported-method 404s, and authenticated OPTIONS behavior. Removes the gocraft dependency.

Mail services are now released even when sending panics. Request logs use the standard logger, debug panic responses are plain text instead of framework HTML, and standard ServeMux path normalization applies. Body-size enforcement and MIME header hardening remain separate later stages.

Validation: go test -race ./..., golangci-lint run (zero issues), and git diff --check passed. A fresh-context subagent independently reviewed commit e6e4ded3522d18ea8693e0ff34178e6bac747a55, reran uncached race tests and lint, checked 108 additional routing/authentication/lifecycle cases, and returned OK.

Stack: 5 of 6, based on #13 (codex/04-golangci-lint). Review and merge in stack order.

@Portals
Portals marked this pull request as draft September 7, 2026 18:51
@Portals Portals changed the title refactor: replace gocraft with net/http routing (5/6) refactor: replace gocraft with net/http routing Sep 7, 2026
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