• v1.2.0 ae5d1f610a

    feat: middleware reach, response writer interfaces, and CORS fixes

    triegebauer released this 2026-05-17 17:51:56 +02:00 | 1 commits to main since this release

    • Run global middleware for all requests, including OPTIONS preflights, NotFound, and MethodNotAllowed — previously bypassed by httprouter's internal handling
    • Implement Hijacker, Flusher, and Pusher on the response writer for WebSocket, SSE, and HTTP/2 push support
    • Fix CORS: echo a single matching origin, handle AllowCredentials with wildcard, append Vary: Origin
    • Logger logs from a defer to capture correct status on panicked requests
    • Static and StaticFS accept route middleware; add Context.AddHeader; warn on NotFound handler override
    Downloads