go-http-logger-example
Go
★ 1
updated 9y ago
Logging the status code for an HTTP response in Go turns out to be a little tricker than first anticipated. You don't get access to the `Response` object after your handler, rather you only have the `ResponseWriter` which is like a byte stream.
No plain-English explanation yet — one is being written right now. Check back in a minute.