The recent Go 1.20 release introduced the http.ResponseController type, which brings benefits like overriding server-wide deadlines on a per-request basis and making it easier to create and use custom http.ResponseWriter implementations.

5m read timeFrom alexedwards.net
Post cover image
Table of contents
Per-request deadlinesFlusher and Hijacker interfacesCustom http.ResponseWriters

Sort: