v0.1.1
Bug fixes and router improvements.
Added
HEAD()andOPTIONS()route methodsRoutes()for listing registered routes- Context helpers:
GetHeader(),Written(),HTML(),Blob(),Stream(),QueryParams() LoggerWithConfig()with custom output and skip optionsNewRateLimiter()withStop()for cleanup- Rate limit headers (
X-RateLimit-*,Retry-After) - CORS
ExposeHeadersandMaxAgeoptions SetTrailingSlash()configuration (Ignore, Redirect, Strict)- Route conflict detection for param routes
Fixed
- Router returns 405 instead of 404 when method doesn't match
- Timeout middleware goroutine leak
- RateLimit cleanup goroutine now stoppable
- Compress middleware buffer flush
- Group middleware slice mutation
- CORS
Vary: Originheader - ETag middleware preserves response headers
- BodyLimit handles chunked encoding
Install
go get github.com/gomarten/marten@v0.1.1