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.
Sort: