docs(httpserver): correct tier from 4 to 3

httpserver depends on launcher (Tier 2), placing it at Tier 3.
With launcher corrected from Tier 5 to Tier 2, httpserver's tier
drops accordingly.
This commit is contained in:
2026-03-19 13:39:19 +00:00
commit 1ec0780f72
15 changed files with 750 additions and 0 deletions

19
doc.go Normal file
View File

@@ -0,0 +1,19 @@
// Package httpserver provides a lifecycle-managed HTTP server built on chi.
//
// It implements [launcher.Component] so it integrates directly with the launcher
// lifecycle (OnInit → OnStart → OnStop). It also embeds [chi.Router], giving callers
// the full chi routing API: Get, Post, Route, Mount, Use, etc.
//
// No middleware is installed by default. Compose your stack with [WithMiddleware]:
//
// srv := httpserver.New(logger, cfg,
// httpserver.WithMiddleware(
// httpmw.Recover(),
// httpmw.CORS([]string{"*"}),
// httpmw.RequestID(uuid.NewString),
// httpmw.RequestLogger(logger),
// ),
// )
// srv.Get("/health", healthHandler)
// srv.Route("/api/v1", func(r chi.Router) { ... })
package httpserver