There must be easy way to access data from handler (like error) in hook.
It can be ResponseBodyWriteCompleted hook with signature func(request *http.Request, handlerName string, bytesWritten int, statusCode int, body interface{})
Maybe it would be more general also to pass context from handler to the hook.
There must be easy way to access data from handler (like error) in hook. It can be
ResponseBodyWriteCompleted
hook with signaturefunc(request *http.Request, handlerName string, bytesWritten int, statusCode int, body interface{})
Maybe it would be more general also to pass context from handler to the hook.