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
  b...@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/dc71f5e6-93e4-8208-f1a5-0ecca4411361%40pferdewetten.de.

Reply via email to