hashicorp / go-secure-stdlib

Mozilla Public License 2.0
64 stars 24 forks source link

listenerutil: Support http.Flusher, http.Hijacker, http.Pusher #53

Closed johanbrandhorst closed 1 year ago

johanbrandhorst commented 1 year ago

Using the new http.ResponseController in Go 1.20, we can easily add support for http.Flusher, http.Hijacker, http.Pusher and the SetReadDeadline and SetWriteDeadline methods to the ResponseWriter wrapper. This fixes some services that rely on this interface being implemented for their functionality.

In Go 1.19, just implement Flusher, Pusher and Hijacker explicitly.