https://github.com/gorilla/handlers contains a number of ResponseWriters to provide functions such as compression and logging On Wednesday, 17 March 2021 at 08:41:09 UTC be...@pferdewetten.de wrote:
> net/http/httptest contains an implementation of http.ResponseWriter that's > used for testing request handlers in isolation (without spinning up a > server). > On 17.03.21 03:12, Amit Saha wrote: > > Hi all, > > I came across the need for writing a custom ResponseWriter when I > wanted to log the response status code. > > Is there any other use case where this is needed to implement one? > Thanks and appreciate any pointers. > > Best Regards, > Amit. > > > -- > Gregor Best > be...@pferdewetten.de > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5261f1fb-5bba-4c11-b650-304aea20427cn%40googlegroups.com.