Small, composable HTTP building blocks for Go's standard library.
| Package | Purpose |
|---|---|
assets |
Serve embedded files with asset caching and gzip negotiation. |
grace |
Run one HTTP server with bounded graceful shutdown. |
middleware |
Compose handlers, log requests, recover panics, and enforce browser-origin write checks. |
parse |
Parse header entries and status-code expressions from configuration. |
prefix |
Mount handlers and generate URLs below an optional path prefix. |
response |
Write JSON/XML responses, track final status, and validate local redirects. |
server |
Run related graceful listeners as one unit. |
go get github.com/containeroo/httpkitassets.Static serves embedded frontend files with cache control and optional gzip.
response.NewRequestWriter and response.LogFailure correlate HTTP failures with access logs.