NancyFx/Nancy — pull request #1600 by grumpydev (2014-07-08 21:20:07+00:00)
Title: Response pre-execute and materialising response update

Added a PreExecute method to response that allows for pre-rendering or validation of the response before Nancy hands off to the hosting, allowing any exceptions to be captured by Nancy's normal error handling pipeline(s). Updated the materialising response to use the new method, so now the view bodies are executed after the rest of the pipeline, rather than before the post request hoook was executed, so should fix CSRF etc.