Closed
Description
Hello,
I want to implement Server Sent Events and am using this library: https://github.com/r3labs/sse
The library expects the http.ResponseWriter
to be able to cast to a http.Flusher
for flushing.
The http.Flusher
documentation states:
// The default HTTP/1.x and HTTP/2 ResponseWriter implementations
// support Flusher, *but ResponseWriter wrappers may not*. Handlers
// should always test for this ability at runtime.
Your library is wrapping http.ResponseWriter
and is breaking the library.
Would it be possible for you to make the bufferedResponseWriter implement the http.Flusher
?
References: r3labs/sse#130
Metadata
Metadata
Assignees
Labels
No labels