gin-gonic/gin — pull request #89 by jasonrhansen (2014-07-31 18:29:35+00:00)
Title: Added Before function to ResponseWriter.

This allows middleware to have a function get
called right before ResponseWriter has been written to.
It can be used to set headers or do other necessary things
before a response has been written.