Skip to content

v0.1.1

Choose a tag to compare

@jackprscott jackprscott released this 10 Jan 09:28
· 16 commits to main since this release

Bug fixes and router improvements.

Added

  • HEAD() and OPTIONS() route methods
  • Routes() for listing registered routes
  • Context helpers: GetHeader(), Written(), HTML(), Blob(), Stream(), QueryParams()
  • LoggerWithConfig() with custom output and skip options
  • NewRateLimiter() with Stop() for cleanup
  • Rate limit headers (X-RateLimit-*, Retry-After)
  • CORS ExposeHeaders and MaxAge options
  • 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: Origin header
  • ETag middleware preserves response headers
  • BodyLimit handles chunked encoding

Install

go get github.com/gomarten/marten@v0.1.1