All Tools
C
Dev ToolsFreeOpen Source
CHI
Idiomatic composable HTTP router for Go
MIT
ABOUT
Go services that want stdlib net/http still need nested routes and middleware stacks. chi composes routers and middleware so agent backends and inference APIs stay idiomatic without a full framework.
INSTALL
go get github.com/go-chi/chi/v5INTEGRATION GUIDE
1. Nest /v1/models and /v1/runs routes on a Go agent API
2. Mount middleware for request IDs, timeouts, and recover
3. Share net/http handlers with the rest of a stdlib service
4. Build a webhook receiver that stays compatible with http.Handler
TAGS
gohttproutermiddlewarenet-http